I need to use multiple 'main' menu's, is there an option to achieve this?
I added this code to the functions.php to create multiple menu options:
if (function_exists('add_theme_support')) {
add_theme_support('menus-test');
}
if ( function_exists( 'register_nav_menu' ) ) {
register_nav_menus( array(
'menu1' => 'Menu 1 name in back-end',
'menu2' => 'Menu 2 name in back-end',
'menu3' => 'Menu 3 name in back-end'
));
}
But I dont know the exact code to input in the header.php to display the specific menu's. Any suggestions?
I tried:
<?php wp_nav_menu( array( 'theme_location' > 'menu2', 'container' > '' ) ); ?>
But it keeps loading the theme's main menu :-(














