Title: Previous posts not appearing
Last modified: August 19, 2016

---

# Previous posts not appearing

 *  Resolved [edjacob](https://wordpress.org/support/users/edjacob/)
 * (@edjacob)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/previous-posts-not-appearing/)
 * I have my blog set to show 10 entries per page, but the previous_posts_link does
   not work. The page number increases, but the same items appear. How can I navigate
   to previously posted post in a custom page template? (There are about 20 posts,
   and when I set the number of posts to display at 20, they all show up, but not
   when I try to use the “previous posts.) The site is in Japanese, so it probably
   won’t help to post a link, but this is my code:
    ‘<?php query_posts(‘cat=3’);
   while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php the_content();?
   > <?php endwhile; ?> </div> <div class=”navigation”> <div class=”alignleft”><?
   php next_posts_link(‘« Older Entries’) ?> </div> <div class=”alignright”><?php
   previous_posts_link(‘Newer Entries »’) ?> </div>`

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

 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/previous-posts-not-appearing/#post-1478084)
 * Hi,
 * Refer this article:
 * [http://codex.wordpress.org/Next_and_Previous_Links](http://codex.wordpress.org/Next_and_Previous_Links)
 * Also check with this plugin:
 * [http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/](http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/)
 * Thanks,
 * Shane G.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/previous-posts-not-appearing/#post-1478096)
 * as you are using a query: `query_posts('cat=3');`
 * you would need to use the paged parameter as well:
 * [http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters)
 * maybe better explained here:
 * [http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/](http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/)
 * try to change this part of your code from this:
 *     ```
       <?php
       query_posts('cat=3');
       while (have_posts()) : the_post(); ?>
       ```
   
 * to this:
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=3&paged=' . $paged);
       while (have_posts()) : the_post(); ?>
       ```
   
 *  Thread Starter [edjacob](https://wordpress.org/support/users/edjacob/)
 * (@edjacob)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/previous-posts-not-appearing/#post-1478296)
 * Thanks so much! Worked like a charm.

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

 The topic ‘Previous posts not appearing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [edjacob](https://wordpress.org/support/users/edjacob/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/previous-posts-not-appearing/#post-1478296)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
