Title: &#8216;posts_nav_link()&#8217; issue
Last modified: August 19, 2016

---

# ‘posts_nav_link()’ issue

 *  [dean_k](https://wordpress.org/support/users/dean_k/)
 * (@dean_k)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/posts_nav_link-issue/)
 * Hi all,
    I’m having an issue with ‘posts_nav_link()’ on this site: [http://www.hellobeautifulworld.com/blog/](http://www.hellobeautifulworld.com/blog/)
 * Basically, both the ‘Next’ and ‘Previous’ links generated link directly back 
   to the same page- i.e. although there are in excess of fifteen posts, the same
   number, in the same order, always show up on the page. (I’ve had to remove the
   link generation code for the moment as the site is live)
 * However, the same basic technique work fine for the ‘Author’ pages:
    [http://www.hellobeautifulworld.com/author/simon/](http://www.hellobeautifulworld.com/author/simon/)
 * I have a feeling it may be related to the fact the blog page isn’t the index 
   page, OR that the posts are from only one category, does that sound likely?
 * Thanks in advance,
    Dean

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/posts_nav_link-issue/#post-1241535)
 * If you’re using query_posts to limit the display to a single category, try using:
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'category_name' => 'Foobar',
       	'paged' => $paged
       );
       query_posts($args);
       ?>
       ```
   
 *  Thread Starter [dean_k](https://wordpress.org/support/users/dean_k/)
 * (@dean_k)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/posts_nav_link-issue/#post-1241561)
 * Thanks esmi, I’ll try that out.

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

The topic ‘‘posts_nav_link()’ issue’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dean_k](https://wordpress.org/support/users/dean_k/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/posts_nav_link-issue/#post-1241561)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
