How to select single category in menu if post have two categories?
Yes, Finally i had done it. I done changes in nav-menu-template.php. I created one variable and initialized with 1 above foreach ( (array) $menu_items as $key => $parent_item ) { this code. and add conditional code if($repetation == ‘1’){//to stop second selection of menu $classes[] = ‘current-menu-parent’; $menu_items[$key]->current_item_parent = true; $repetation++; } else{ //echo $repetation; … Read more