I have a wordpress website and I would like that as soon as the menu is selected according to the page that I am, I also select the "Blog" menu item when I am on a category page or post.
This is the menu code for my theme:
$defaults = array(
'container' => 'nav',
'theme_location' => 'primary',
'depth' => 3,
'walker' => new ts_walker_nav_menu
);
wp_nav_menu( $defaults ); ?>