I have a custom post type called Books and a page structure like this:
Home
Products & Services
- Services
- Products
-- Books
I am using Wordpress custom Menus for the 1st level navigation (displayed horizontally), and wp_list_pages to print out the subnavigation based on the page selected from the 1st level of navigation (the submenu is displayed vertically).
To make things more interesting/worse, I am only displaying Books in the submenu if I am viewing the Products or Books page.
Now, I would like to add the active and current_page_item/current_page_ancestor classes to the Products & Services, Products and Books when I am viewing a single Book (custom post type).
How should I do it?
