Can’t work out how to get a top level menu item highlighted.
I’ve created a custom post type “Projects” using ACF Pro. The “Post Type Key” is “projects” and it’s using a custom permalink : the “URL Slug” is “project” and the “Archive Slug” is “projects”.
The menu item is a “Custom Link” and the “URL” is “/projects”. This displays the projects archive as expected and the menu item is highlighted. Clicking into a project shows an individidual project as expected.
The issue is that the top level nav item “Projects” is not highlighted as the parent when showing an individual project.
The menu item that DOES get highlighted with the css class “current_page_parent” is in fact the News menu item. In the menu this is “Posts Page” and works as expected showing the News archive or an individual News post. News is the standard WP blog entry.
What do I need to do to change the behaviour so that the top level navigation “Projects” gets the css class “current_page_parent” when a single “Project” is displayed?