Title: Next Post within same category
Last modified: November 14, 2017

---

# Next Post within same category

 *  [co77ee](https://wordpress.org/support/users/co77ee/)
 * (@co77ee)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/next-post-within-same-category/)
 * How do I change the Next and Previous Post to be within the same category? Thank
   you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnext-post-within-same-category%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/next-post-within-same-category/#post-9707872)
 * Hey [@co77ee](https://wordpress.org/support/users/co77ee/) – in order to do that,
   you’ll want to look at modifying/replacing the existing `the_post_navigation`
   function, in a child theme.
 * Making a child theme means your changes won’t be overwritten when you update 
   the theme. If you’re new to child themes, you can explore these guides:
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   
   [https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/](https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/)
 * The current function is in the `single.php` file.
 * Here are some resources to point you in the right direction:
 * [https://codex.wordpress.org/Function_Reference/the_posts_pagination](https://codex.wordpress.org/Function_Reference/the_posts_pagination)
 * [https://codex.wordpress.org/Function_Reference/previous_post_link#Text_As_Link.2C_Without_Post_Title.2C_Within_Same_Category](https://codex.wordpress.org/Function_Reference/previous_post_link#Text_As_Link.2C_Without_Post_Title.2C_Within_Same_Category)
 * [https://wordpress.stackexchange.com/questions/149826/display-posts-from-the-same-category-using-next-previous-post-link](https://wordpress.stackexchange.com/questions/149826/display-posts-from-the-same-category-using-next-previous-post-link)

Viewing 1 replies (of 1 total)

The topic ‘Next Post within same category’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/dara/1.2.1/screenshot.png)
 * Dara
 * [Support Threads](https://wordpress.org/support/theme/dara/)
 * [Active Topics](https://wordpress.org/support/theme/dara/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/dara/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/dara/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/next-post-within-same-category/#post-9707872)
 * Status: not resolved