Create menu item for taxonomy archive with specified post type
-
I have a taxonomy called ‘occasions’ and it has two post types, events and news. I would like to have a menu setup something like this:
News
Events
– Occasion 1
– Occasion 2
– Occasion 3I have the rewrite stuff all squared away and the queries are pulling what they should. If I type in /news/occasion1 I get all the news items with that term and so forth. The issue I’m having is that ‘occasion 1’ listed under ‘events’ will be flagged as the active menu item even if I’m clearly at /news/occasion1. The reason being, the menu item I added is a taxonomy archive that doesn’t differentiate between post types.
Creating custom urls or using query strings really isn’t ideal. Any ideas on a solution out there or am I asking too much of wordpress (I know it can do some pretty out there stuff).
Thanks in adv,
John
- The topic ‘Create menu item for taxonomy archive with specified post type’ is closed to new replies.