2 loops and pagination doesn’t work
-
Hi,
I have 2 loops in my index page
<?php
$posts = get_posts('category=1&numberposts=1');
foreach($posts as $post) :
setup_postdata($post);
?>
and
<?php query_posts('cat=-3'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
This seems to be messing up my previous/next links. I get the same posts on all the pages.
How do I resolve this?
Thanks.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘2 loops and pagination doesn’t work’ is closed to new replies.