Next/Previous link category showing multiple categories
-
https://www.scottlukowski.com/home/concept-art
https://www.scottlukowski.com/home/concept-art-2The category archives are actually pages with query posts getting posts from a certain category. This way I can have custom fields for text appearing on the side.
Let’s say concept-art shows all the posts in category 1, and concept-art-2 shows all posts in category 2. Meanwhile, several category 2 posts are also tagged category 1, since I want certain posts to show up in both pages.
I have
next_post_link()
in_same_category
set toTRUE
, however, when you click on one of the thumbnails in the concept-art-2/category 2 page, the next/previous buttons in the single posts seem to be next/previous for category 1, aka the larger of the two groups. How can I make it so that if you click on a thumbnail from concept-art-2 the next/previous links in the single posts only show category 2 and not any other categories that that single post may have been tagged in?
- The topic ‘Next/Previous link category showing multiple categories’ is closed to new replies.