WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OK so i have custom post types and custom taxonomies. I have a sub-menu that is made of the custom taxonomies.


registered taxonomy: Movies


terms: action, adventures, etc. (= menu items)


Now I need to add a highlight-class to the terms when the currently displayed page is an archive of one of the terms.

I am almost looking to use my nav menu as a breadcrumb so to speak.

share|improve this question
This "sub menu" is created with the new custom navigation menu functionality of WordPress 3.0? – Jan Fabry May 18 '11 at 13:16
yes I am using the the new menu system – xLRDxREVENGEx May 18 '11 at 15:15
I would love to see an automated vs. of this. I looked at the pastebin code example below, but that would be a nightmare to maintain on a huge site. Has anyone attempted this yet? – shawn Jun 4 '11 at 5:06
As this is just recent, i dont think someone has tried this. I have been taking some spare time to see if i can do this but since i have other things more important than this; it will be a while before i finish – xLRDxREVENGEx Jun 4 '11 at 6:07
up vote 0 down vote accepted

Ok. So instead of pasting the code here ill just link to it since i do not feel like adding the code format to each line. This is most likely just temporary but will get what i need done. It is used with some of jquery scripting but should not need it. Feel free to edit as you wish and update this question with your re-writes http://pastebin.com/bWC7a1ej

share|improve this answer
on a side note i do want to thank @JanFabry , @rarst, @kaiser, @toscho for helping me figure this out. Though i can say this is not how they would write it up i can assure you that – xLRDxREVENGEx May 27 '11 at 2:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.