Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28977

    I’ve got an item in my portfolio with only to lines and the second line is a link.

    Now the two lines show up in the portfolio overview page. But the link is not accessable.

    Is it possible to make the link work or to not show up in the preview and only if the item is being opened?

    Thanks

    #139333

    Hi,

    Can you post the link to your website please?

    Regards,

    Josue

    #139334
    #139335

    We use the the_excerpt() function to display the excerpt and wordpress strips the html code from the excerpt to avoid any invalid code (i.e. because of the text truncation, etc.). If you want to display html code open up and replace

    the_excerpt();

    with

    the_content(__(' ','avia_framework'));

    afterwards you can use the more quicktag: http://en.support.wordpress.com/splitting-content/more-tag/ to separate the excerpt text from your content.

    #139336

    Thanks for your help. The links work well now.

    Only problem is that the content after the “<!–more–>” is displayed as well when I use the code “the_content(__(‘ ‘,’avia_framework’));”

    I changed it in the file Flashlight: loop-portfolio.php (includes/loop-portfolio.php)

    #139337

    Just found that I need to change the variable:

    global $more;

    $more = 0;

    before using the “the_content..:”

    now it works. I hope this has no impact to other parts of the layout…

    #139338

    Hi veleum,

    No, that shouldn’t harm anything else. You could also use your own function instead of the avia framework more function if you wanted but it isn’t really needed since you have it working now.

    Regards,

    Devin

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Portfolio preview – link text shown – link doesn't work…’ is closed to new replies.