I register 2 menus in my functions.php file:
register_nav_menus(array(
'main_menu' => 'Main Menu',
'bottom_menu' => 'Bottom Menu'
));
I populate a menu in the admin and assign the theme location:
I call the menu in my theme:
<?php
wp_nav_menu('menu', 'main_menu');
?>
After doing all this, bottom_menu
is the menu showing up in my theme instead.
Can anyone tell me what I'm doing wrong? Either I'm missing something really silly here or Wordpress is giving me the finger.
wp_nav_menu()
takes array of arguments, see usage examples in documentation.theme_location
argument.