Custom Post Type & Custom Menu Walker to append custom class for active post types
When i want to add the classes current-menu-item and current-page-ancestor i always use the wp_nav_menu without any custom walker. I only build my own walker if i want to change lets say the classes to something like “sel” instead. So i add the menu like this: <?php wp_nav_menu( array( ‘theme_location’ => ‘company-menu’, ‘container’ => false, … Read more