I have a parent category titled ‘Latest’ and its children categories titled ‘Painting,’ ‘Illustration,’ ‘Photography,’ etc. I’m using the following code in my single.php page from [Wordpress Codex](http://codex.wordpress.org/Template_Tags/next_post_link “http://codex.wordpress.org/Template_Tags/next_post_link”) to get the pagination to flip through posts within the same child category. All works well.
However, when I enter the post from the parent category, it reverts back to flipping through posts within the child category it pertains to, not the parent. I was hoping to get it to work for parent too. Apparently, it confuses visitors.
I thought I solved the problem but I just realized I didn’t. Now that I have both child and parent categories checked off, when entering the post from the child category, it flips through the parent category.
I learned and tried using Sessions and Taxonomies but it didn’t work. Then again I’m very new to Sessions and Taxonomies so maybe I’m not understanding something.
Again, I’m trying to get the next/previous post links to work within the same category for child and parent. Is this possible?
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".