Display the_content for top two posts on home page
-
Hey folks,
Here’s the code I’m currently using to display the most recent post as a full (the_content) post, while all others below and on other pages (other than home) are truncated (the_excerpt).
<?php if( $wp_query->current_post == 0 && !is_paged() ) the_content('<p><span class="readmore">Read More →</span></p>'); else the_excerpt(); ?>
What I’d like to do is simply display the TWO most recent posts on the home page instead of just one.
Thoughts?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display the_content for top two posts on home page’ is closed to new replies.