In my theme i need to display different left side menus on different pages. so i register a secondary menu too by this
register_nav_menus(
array(
'primary' => __( 'Top Menu' ),
'left' => __( 'Left Menu' )
)
);
and i used a plugin named CE WP-Menu per Page
to select menus from dropdown list shown in the page edit, so that i can assign different menu for different pages. and in my page template i wrote the below code to display the menus
wp_nav_menu( array( 'container' => false, 'menu_id' => 'menu-left-side-menu', 'menu_class' => 'menu', 'theme_location' => 'left' ) );
In Dashboard->Appearnce->menus i have created 3 menus (for test, actually no: of menus depends on no: of pages created). They are
1.top menu
2. left menu1
3. left menu2
and had assigned primary
for top menu and left
for left menu1. everything worked perfectly. but i have to assign left menu2 for another page and display it. for that when i assign left menu2 to location left
, previous assignement of left menu1 overwrites. and now left menu1 is not showing in the page.
Problem
Is there any way to make the wordpress menu supports assigning more than one menus to same menu theme location??
I hope my problem description is understandable. if any clarification needed please tell me.