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?
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
afterwards you can use the more quicktag: http://en.support.wordpress.com/splitting-content/more-tag/ to separate the excerpt text from your content.
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)
Just found that I need to change the variable:
$more = 0;
before using the “the_content..:”
now it works. I hope this has no impact to other parts of the layout…
The topic ‘Portfolio preview – link text shown – link doesn't work…’ is closed to new replies.