Title: WordPress Older/Newer Post Navigation Issues
Last modified: August 19, 2016

---

# WordPress Older/Newer Post Navigation Issues

 *  Resolved [amberturner](https://wordpress.org/support/users/amberturner/)
 * (@amberturner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/)
 * I am having issues with a client site in which I have used posts as portfolio
   entires. For some reason, each page in the older/newer page navigation shows 
   the same 10 posts, and I am not sure why.
 * Here are the categories in which it does it:
    [http://jessicablakedesigns.net/drawings/](http://jessicablakedesigns.net/drawings/)
   [http://jessicablakedesigns.net/paintings/](http://jessicablakedesigns.net/paintings/)
   [http://jessicablakedesigns.net/faux/](http://jessicablakedesigns.net/faux/)
 * It may do it on the blog too but there are not enough posts on the blog to test
   it. These categories have 14 posts for drawing, 39 for faux, and 13 for furniture,
   so I know that they have more than 10 posts per category (which is the number
   I have set in the admin panel to be the max shown on the page).
 * Can anyone suggest where I should start looking to resolve the issue?
 * Thanks!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241288)
 * Are you using query_posts on any of these category templates? That can mess with
   pagination.
 *  Thread Starter [amberturner](https://wordpress.org/support/users/amberturner/)
 * (@amberturner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241292)
 * Yeah, this is the start of my loop:
 *     ```
       <?php $catname = wp_title('', false); ?>
       <?php query_posts("category_name=$catname"); ?>
       <?php if(have_posts()) : while(have_posts()): the_post(); ?>
       ```
   
 * Any way to keep that same function but allow for the pages to show different 
   posts?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241295)
 * Try:
 *     ```
       <?php
       $catname = wp_title('', false);
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'category_name' => $catname,
       	'paged' => $paged
       );
       query_posts($args);
       ?>
       <?php if(have_posts()) : while(have_posts()): the_post(); ?>
       ```
   
 *  Thread Starter [amberturner](https://wordpress.org/support/users/amberturner/)
 * (@amberturner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241300)
 * Yes!! Worked like a charm!! Thank you very much!
 *  [christian_gnoth](https://wordpress.org/support/users/christian_gnoth/)
 * (@christian_gnoth)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241676)
 * I had the same problem and it is working well on pages with many posts.
 * Now I have still the problem, that the navigation on single post display is not
   working

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

The topic ‘WordPress Older/Newer Post Navigation Issues’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [christian_gnoth](https://wordpress.org/support/users/christian_gnoth/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/wordpress-oldernewer-post-navigation-issues/#post-1241676)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
