Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Example:

registered taxonomy: Movies

and

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

Problem:

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

1 Answer 1

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

 
discard

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.