Detecting current page and related actions
-
Hi all,
I don’t know if this is the right location, but I consider the stuff I use as being hacks. If you pop over to my site https://www.bee-digital.com you will see that I have a “Home” page with posts in different categories. However I also have a Portfolio page with posts in some specific categories.
My problem is that depending on which categories or posts you are looking at, I want different left-side menu and I want to show the parent menuitem in the top menu as selected.
The code I have now worked, for a while ?? You’ll notice the left menu becomes wrong when you navigate to Portfolio posts. I was hoping someone had a better way. These are the codebits I currently use (they worked until I got a post in category 46 Portfolio-other), I tried some modifications yesterday but they didn’t make much difference: https://www.bee-digital.com/?p=142#more-142
- The topic ‘Detecting current page and related actions’ is closed to new replies.