Previous/Next Links when using Multiple Loops?
-
I am using 5 loops on my index page, each pulling the last post from a different category.
Next/previous links go to page 2 but show the same (most recent) posts again.
I searched the forum, and the only solution I could find that addressed this same problem suggested using get_posts instead of query_posts in the loop, but I am already using get_posts.
Here is the code for one of the loops (the rest are the same, except for category id):
<?php
$lastposts = get_posts('numberposts=1&category=5');
foreach($lastposts as $post) :
setup_postdata($post);
?>
<?php the_content(); ?>
<?php endforeach; ?>
<!--end post-->
Any suggestions?
thx- Melanie
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Previous/Next Links when using Multiple Loops?’ is closed to new replies.