I want to style the latest post differently than all the other posts in a category on a custom page. So far I have this code below which does exactly that:
<?php if (have_posts()) : ?>
<?php query_posts("cat=4&showposts=1"); ?>
<?php while (have_posts()) : the_post(); ?>
(Style1)<?php the_title(); ?></br>
<?php endwhile; ?>
<?php query_posts("cat=4&showposts=4&offset=1"); // show 4 latests posts excluding the latest ?>
<?php while (have_posts()) : the_post(); ?>
(Style2)<?php the_title(); ?><br/>
<?php endwhile; ?>
<?php else: ?>
No Posts Found
<?php endif; ?>
<div class="navigation">
<div class="alignleft"><?php previous_posts_link('« Previous') ?></div>
<div class="alignright"><?php next_posts_link('Next »') ?></div>
</div>
My question is, how would I then get the pagination to work correctly? Right now clicking Next/Previous loads a different page, but the posts stay the same.
I would like to be able to click Previous or Next, and it only load the style2 posts. Style 1 post would only show when on the front page of the custom page