Title: posts_nav_link help?
Last modified: August 18, 2016

---

# posts_nav_link help?

 *  Resolved [steadyvibe](https://wordpress.org/support/users/steadyvibe/)
 * (@steadyvibe)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/posts_nav_link-help/)
 * Has anyone had problems using the posts_nav_link tag? It works ok, but then it
   gets to the last page and you click next page it brings up not found page because
   there are no more pages to display. Shouldn’t is just stop displaying the next
   page if there are no more pages after the current one?
 * Are there any better tags to use for Next and Previous page buttons?

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

 *  Thread Starter [steadyvibe](https://wordpress.org/support/users/steadyvibe/)
 * (@steadyvibe)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/posts_nav_link-help/#post-366887)
 * I was using this code before but it only worked on the home page and none of 
   the next pages.
 * <?php next_posts_link(‘« Previous Entries’) ?>
    <?php previous_posts_link(‘Next
   Entries »’) ?>
 *  Thread Starter [steadyvibe](https://wordpress.org/support/users/steadyvibe/)
 * (@steadyvibe)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/posts_nav_link-help/#post-366903)
 * If i went back to using:
 * <?php next_posts_link(‘« Previous Entries’) ?>
    <?php previous_posts_link(‘Next
   Entries »’) ?>
 * Does anyone have any idea why it on page 2 (eg: [http://www.steadyvibe.com/page/2/](http://www.steadyvibe.com/page/2/)),
   it does not display a previous page button even thought here are pages 3 (eg:
   [http://www.steadyvibe.com/page/3/](http://www.steadyvibe.com/page/3/)) and 4(
   eg: [http://www.steadyvibe.com/page/4/](http://www.steadyvibe.com/page/4/)) after
   it?
 *  [kencheung](https://wordpress.org/support/users/kencheung/)
 * (@kencheung)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/posts_nav_link-help/#post-367206)
 * I had the same problem with posts_nav_link until I changed the “show at most”
   from x days to x posts (admin:options:reading menu).

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

The topic ‘posts_nav_link help?’ is closed to new replies.

## Tags

 * [found](https://wordpress.org/support/topic-tag/found/)
 * [next](https://wordpress.org/support/topic-tag/next/)
 * [previous](https://wordpress.org/support/topic-tag/previous/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [kencheung](https://wordpress.org/support/users/kencheung/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/posts_nav_link-help/#post-367206)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
