Title: Prev/Next within same category
Last modified: September 1, 2016

---

# Prev/Next within same category

 *  Resolved [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [10 years ago](https://wordpress.org/support/topic/prevnext-within-same-category/)
 * I’d like to set my site up so that the “previous” and “next” links at the bottom
   of each post link only to articles from within the same category.
 * According to the [WordPress Codex](http://codex.wordpress.org/Template_Tags/next_post_link)
   this is possible by changing a parameter called `in_same_term` on the `next_post_link()`
   function.
 * Where can I change this in Tiny-Framework?
 * The support forums seem to suggest that this should be in `single.php` but I 
   can’t find that function there. I have traced other functions that look similar
   but I can’t find a call to these native ones.
 * Thanks,
 * Gavin.

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

 *  Thread Starter [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [10 years ago](https://wordpress.org/support/topic/prevnext-within-same-category/#post-7513367)
 * A little further digging and I added `'in_same_term'=>true` to the `the_post_navigation()`
   function in the file `single.php` and it’s now working.
 *  Theme Author [Tomas Mackevicius](https://wordpress.org/support/users/tomasm/)
 * (@tomasm)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/prevnext-within-same-category/#post-8681101)
 * Thank you for the idea! I will include it as Tip91 in the upcoming version.

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/tiny-framework/2.3.1/screenshot.
   png)
 * Tiny Framework
 * [Support Threads](https://wordpress.org/support/theme/tiny-framework/)
 * [Active Topics](https://wordpress.org/support/theme/tiny-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/tiny-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/tiny-framework/reviews/)

## Tags

 * [post navigation](https://wordpress.org/support/topic-tag/post-navigation/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tomas Mackevicius](https://wordpress.org/support/users/tomasm/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/prevnext-within-same-category/#post-8681101)
 * Status: resolved