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.

  • This "sub menu" is created with the new custom navigation menu functionality of WordPress 3.0?
    – Jan Fabry
    May 18, 2011 at 13:16
  • yes I am using the the new menu system May 18, 2011 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, 2011 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 Jun 4, 2011 at 6:07

1 Answer 1


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

  • 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 May 27, 2011 at 2:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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