wsanders
Member
Posted 3 years ago #
Hello everyone, so have an issue with the excerpts.
I changed the PHp coding on the index.php file from the_content to the_excerpt..
problem is now on the posts, it displays the excerpt, but no link to the full article. It just shows the exceprt and the [...]
Thanks for the help
Yes, the_excerpt() will only display first 55 character of your post also all HTML and Images will be striped with at end [..].You won’t have read more link. chgeck this WordPres Documentation Guide for the_excerpt
http://codex.wordpress.org/Template_Tags/the_excerpt
You can add the_permalink(); to get link to post at the end of Excerpt but this will point to start of your post.
wsanders
Member
Posted 3 years ago #
<div class="entry">
<?php if(is_archive()) {the_excerpt('Read the rest of this entry »');
} else {
the_content();
} ?>
</div>
So would it look something like that?