Displaying excerpt/summary only, AND a “read more” button
-
I edited my wordpress theme so on the front page, you only see the article summary and you have to click the title to view the entire post.
<div class="postcontent"> <?php the_excerpt('Read the rest of this entry »'); ?> </div>
Basically I replaced “the_content” with “the_excerpt”.
Now, although there is the option to simply click the title to view the post, I also want a “Read More” button as well. The problem with this is that the Read More feature applies only to posts that have the breaks manually inserted in them during editing. The code above shows a “Read the rest of this entry” feature, but it never shows up if you’re only using excerpts.
I need a universal button that simply links to the post itself. You might say that the post links to itself at the bottom. However, it can only show this link on the front page where it only shows the summaries (and the archives, for that matter).
I hope this makes sense. Thanks.
- The topic ‘Displaying excerpt/summary only, AND a “read more” button’ is closed to new replies.