Quick Question for Displaying Posts
-
For a (very basic) theme I’m creating, I’d like to learn how to display the whole post for my most recent post but then just the excerpt for subsequent posts.
I’ve been reading the Loop page in the codex. http://codex.wordpress.org/The_Loop
Would this be as simple as specifying “1 post” in the loop here? (If so, how exactly would this be accomplished?)
<?php while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?>Then would I reset the loop counter with rewind_posts() and do it again displaying the excerpts? Not really sure, but that was my guess after reading the Codex. I’m guessing this has been asked, but I couldn’t find it as it was difficult to anticipate the exact wording that would be used.
Thanks for the help!
The topic ‘Quick Question for Displaying Posts’ is closed to new replies.