Highlight parent menu item when child post
to highlight the menu element, you should add the class active. This will work for your photo custom post type. Concerning your blog posts: As you can see, in the URL of a blog post there is no post/ which would be necessary for your code to act on. Furthermore, the blog overview page does … Read more