Title: Older/Newer Posts navigation not functioning
Last modified: August 19, 2016

---

# Older/Newer Posts navigation not functioning

 *  Resolved [captainsupern00b](https://wordpress.org/support/users/captainsupern00b/)
 * (@captainsupern00b)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/oldernewer-posts-navigation-not-functioning/)
 * Quick question: is it possible to create a single page listing all posts that
   were posted in two categories, that still has the older/newer posts navigation?
   I made a single page in the admin panel and associated it to a custom template
   I made, which uses query_post to pull in all the posts I need… but, the navigation
   doesn’t seem to work (when I click newer/previous, it just refreshes the page).
   After all my research I’m beginning to get the feeling this sort of navigation
   only exists for index and category pages, but I don’t quite understand why not
   for pages.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/oldernewer-posts-navigation-not-functioning/#post-1329669)
 * Try using something like:
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'cat' => '10,23',
       	'paged' => $paged
       );
       query_posts($args);
       ?>
       ```
   
 * in your custom template.
 *  Thread Starter [captainsupern00b](https://wordpress.org/support/users/captainsupern00b/)
 * (@captainsupern00b)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/oldernewer-posts-navigation-not-functioning/#post-1329856)
 * Wow, thank you very, very much! I’ve tried this code out and it works perfectly.
   The answer seems to lie in using the ‘paged’ variable, which wasn’t quite clearly
   explained in the codex description for query_posts. Thanks again, this is a big
   help!

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

The topic ‘Older/Newer Posts navigation not functioning’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [single](https://wordpress.org/support/topic-tag/single/)
 * [two](https://wordpress.org/support/topic-tag/two/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [captainsupern00b](https://wordpress.org/support/users/captainsupern00b/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/oldernewer-posts-navigation-not-functioning/#post-1329856)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
