Dyad 2: Limit Next/Previous Post to one Category
-
I have seen this question asked and solved for many other themes, but can’t seem to find the proper configuration for Dyad 2. I want to restrict the Next/Previous Post links at the bottom of each post so that they only link to other posts in the same category.
I have my posts grouped into 3 basic categories: Blog, Recipes, and Photo Galleries. I want the next/previous post links at the bottom of each post to only direct visitors to posts within the same category. You can see a good example of this at: https://test.garnergrows.com/baked-kale-chips/. The Next post link goes to another recipe, but the Previous post goes to a Blog entry which is less than desirable!
I have setup a staging copy of my site as well as a child theme for Dyad 2 so that I can safely edit php files, but I am unsure exactly where and how to edit. I (believe) I have found the code for these links in the “single.php” file. Other answers to the question have indicated that: ‘in_same_term’ must be set to “true”, but I am unsure exactly how and where to do this.
Any help would be appreciated. Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Dyad 2: Limit Next/Previous Post to one Category’ is closed to new replies.