Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Detecting if you are on a specific sub nav


modemlooper
Moderator

@modemlooper

Here’s something else I was trying to create. This would be great for theme devs. Basically wanted to merge the user nav and subnav together. This code works great but I’m not sure how to only show the subnav when on the parent user nav. This code just outputs everything. I got as far as showing only the first link by wrapping echo in an if statement because when you click a parent link you are in essence on the firs subnav.

http://pastebin.com/LCW3wsZ9

Skip to toolbar