Hi, I'm fiddling with WordPress 2.5 after not using it for a while. I'm looking to have my home page show 3 posts, one full and then the second and third as excerpts. As far as I know there are two ways to do this with wordpress, the_excerpt() and <!--more-->, and I'd rather not put something in each post. Is there a simple way to achieve this? Do I need to dig into "the loop" ?
Thanks,
Toby
Pinoy.ca
Member
Posted 4 years ago #
Evermore
http://wordpress.org/extend/plugins/evermore/
Send me an ecard if this helps... :)
I really do hate to be ungrateful, and I'm sure I'll use this, but..
I'm looking for a way specifically to show the first post on the home page in full, and every post after that as an excerpt.. I'd rather not have to edit each post with the <!--more--> tag, and while the plugin certainly seems useful, it's not exactly what I'm after - and I *KNOW* someone has done this before.. I want one full post, two semi-posts on the home page PLEASE!
Thanks in advance,
Toby
Pinoy.ca
Member
Posted 4 years ago #
Storyman
Member
Posted 4 years ago #
Create a counter loop so the first post uses the_content and the remaining post use the_excerpt.
Before the while loop add this:
$i = 0
Just before the end of the while loop add this:
$i++;
Now, in the area that displays your content, replace it with this.
if($i == 0) the_content();
else the_excerpt();
I use this on my site: http://justintadlock.com