I am showing a wp menu with the following function:
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'depth' => 2, ) ); ?>
My menu has only pages and no posts or categories. One of my page is showing posts. If i click one of the posts, I go to that post page. But problem is that, then I cant get the active menu. It make sense because it is in post page now. but how can i achieve that.