I'm creating a theme with a custom post type for team members, I've also got the following page structure:
about <-- this is a page about/team-members <-- this is a page, lists all the team members about/team-members/joe-bloggs <-- this is a custom post type (team member) entry
The third structure here uses the about and team member pages, but goes on to use the custom post type slug to make it look like it's parents are team member and about. I've achieved this by setting the following options on the custom post type:
... 'rewrite' => array( 'slug' => 'about/team-members', 'with_front' => false) ...
This works great, however when I get down to the team member post level I no longer get the current-page, current-ancestor classes on the parent pages. I know why this is, because we're not technically on a pagea parent of those pages, however is there a way I can trick/fix/bodge so the pages DO apear as parents?
I had achieved this nicely by using pages for team members, however a custom post type was chosen instead for easy of use for the administrator.
Thanks guys + girls!