Active page in single post with multiple categories
-
Hi,
I got some of my posts in my site that are added to multiple categories,. Also in pages I make a query to show related posts by category with the same name of the page and the posibility of add content.
In front-end when I go to the page:https://www.myexample.com/sun-projects
I see the content of the page and the related post of category “sun projects”,when i make click in the related post i go to the single post,
https://www.myexample.com/sun-projects/my-sun-project
In this part I need that in the single post I can put via CSS or any alternative, the active page in navigation menu, but the posts are in multiple categories, to go to the other page(solar-ideas) with the same single post, the page active is “sun-projects” but not “solar-ideas”.
https://www.myexample.com/solar-ideas/my-sun-project
I tried with conditional tags in single.php and many other forms but I can’t get what i want
How I can solve that issue?
I Appreciate any help,
Thanks in advance
- The topic ‘Active page in single post with multiple categories’ is closed to new replies.