My task is to create local menu which will be displayed if specific page is open (checking page). For now I would like to display my custom menu. I am creating custom menu from Appeerance-Menus. After theat in functions.php I am doing the following:
function register_my_menus() {
register_nav_menus(
array(
'explore_menu' => __( 'Explore Menu' ),
)
);
}
add_action( 'init', 'register_my_menus' );
AFter that I mark the check box Explore menu in the dashboard, such that my menu is marked as Explore menu. In my page.php I am adding this:
<div id="primary" class="content-area">
<?php wp_nav_menu( array(
'theme_location' => 'explore_menu'
) );
?>
I expect to see the menu I created, but I dont see it. WHat could be the problem???