Second Query Breaks Nav Links
I have the following that I am using to show the post titles of one category in my sidebar:
<?php $my_query = new WP_Query('category_name=Plugins&showposts=10'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
It works fine, in itself, but it causes my Previous and Next links on my archive pages to disappear. How can I fix this?
- The topic ‘Second Query Breaks Nav Links’ is closed to new replies.