[wp-hackers]Treat most recent post differently to the rest
hempsworth at googlemail.com
Thu Jan 15 00:15:14 GMT 2009
On my category archives page, I'm outputting the first post into a different
HTML structure, and then outputting the rest of them below that as normal.
$recentPosts = new WP_Query();
while ($recentPosts->have_posts()) : $recentPosts->the_post();
DOING SOMETHING WEIRD TO THE MOST RECENT POST HERE
while (have_posts()) : the_post(); ?>
OUTPUTTING THE REST NORMALLY HERE
<?php endwhile; ?>
Because I've already outputted that most recent post, how do I exclude it
from the main output below that?
Almost like offset the output to start 1 post later than the most recent
Hope this makes sense :)
More information about the wp-hackers