Title: the_posts_navigation fails
Last modified: August 22, 2016

---

# the_posts_navigation fails

 *  Resolved [lessthanweb](https://wordpress.org/support/users/lessthanweb/)
 * (@lessthanweb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/)
 * What if a theme author wants to use prev/next (`the_posts_navigation()` function)
   links for posts navigation? Or is there a new rule that only pagination should
   be used?
 * > REQUIRED: The theme doesn’t have post pagination code in it. Use posts_nav_link()
   > or paginate_links() or the_posts_pagination or next_posts_link() and previous_posts_link()
   > to add post pagination.
 * [https://wordpress.org/plugins/theme-check/](https://wordpress.org/plugins/theme-check/)

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

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 3 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/#post-5603749)
 * What specific code do you want to use? Over the years, there have been so many
   ways to add this sort of thing that it checks for a variety of different methods.
 * The current latest way in 4.1 is to use `the_posts_pagination()`.
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 3 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/#post-5603751)
 * See, nobody tells me these things. I didn’t even know there was a new `the_posts_navigation`.
   Dangit.
 *  [danish.webvillee](https://wordpress.org/support/users/danishwebvillee/)
 * (@danishwebvillee)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/#post-5604106)
 * Hi
 * i have a same issue and I have already used the code for pagination in my theme
   template. but i get the same error on theme check
 * > <p>REQUIRED: The theme doesn’t have post pagination code in it. Use posts_nav_link()
   > or paginate_links() or the_posts_pagination or next_posts_link() and previous_posts_link()
   > to add post pagination.</p>
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 7 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/#post-5604107)
 * Update to the latest version of theme-check, which does indeed check for the_posts_navigation.

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

The topic ‘the_posts_navigation fails’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/the_posts_navigation-fails/#post-5604107)
 * Status: resolved