Title: posts_nav_link keeps showing same posts
Last modified: August 19, 2016

---

# posts_nav_link keeps showing same posts

 *  Resolved [nipponese](https://wordpress.org/support/users/nipponese/)
 * (@nipponese)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/posts_nav_link-keeps-showing-same-posts/)
 * For some reason when I use posts_nav_link, I keep getting the same posts and 
   it won’t show the older, or new posts.
 * Is it a problem that I am using `<?php query_posts('category_name=news'); ?>`
   before The Loop?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/posts_nav_link-keeps-showing-same-posts/#post-1084844)
 * You need to add some additional code to resolve that.
 * Change your query posts to this
 *     ```
       <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
             query_posts("category_name=news&paged=$paged"); ?>
       ```
   
 * make sure you have double quotes around the query_posts parameters
 *  Thread Starter [nipponese](https://wordpress.org/support/users/nipponese/)
 * (@nipponese)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/posts_nav_link-keeps-showing-same-posts/#post-1084850)
 * Thank you!
 *  [hexa6on](https://wordpress.org/support/users/hexa6on/)
 * (@hexa6on)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/posts_nav_link-keeps-showing-same-posts/#post-1085201)
 * I’m having the same problem and I tried this with no avail. Please help.
 * This is the page: [http://www.goliathlabs.com/goliath2009/articles/](http://www.goliathlabs.com/goliath2009/articles/)
 * This is my code:
 *     ```
       <div class="articles-container grid_8">
       			<?php
       			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       			$args=array(
       			   'categore_name'=>articles,
       			   'paged'=>$paged,
       			   );
       			query_posts($args);
       			?>
       			<?php while (have_posts()) : the_post(); ?>
       			<h1><a href="<?php the_permalink(); ?>">
       				<?php the_title_attribute(); ?>
       				</a></h1>
       			<h2>
       				<?php meta(subheading); ?>
       			</h2>
       			<div class="body-text">
       				<?php
       				global $more;
       				$more = 0;
       				?>
       				<?php the_content('<p>&raquo; Read full article&hellip;</p>'); ?>
       			</div>
       			<?php endwhile;?>
       			<?php posts_nav_link(' — ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
       		</div>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘posts_nav_link keeps showing same posts’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [hexa6on](https://wordpress.org/support/users/hexa6on/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/posts_nav_link-keeps-showing-same-posts/#post-1085201)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
