Posts in multiple loops (First 2 and 3-10)
-
Hello!
I allready found out how i can do multiple loops but now i want the first loop to show the last 2 posts, and the second loop to show post 3 to 10.
<?php get_header(); php rewind_posts(); ?> <?php if (have_posts()) : global $more; $more = 0; while (have_posts()) : the_post(); ?> <!-- First 2 posts --> <?php endwhile; endif; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- Post 3 to 10 --> <?php endwhile; endif; get_footer(); ?>
Somebody who can give me a hint in the right direction?
Thanks! Pils
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Posts in multiple loops (First 2 and 3-10)’ is closed to new replies.