I am running WP 3.2.1 on a dedicated server and having a little trouble with a second menu.
I have a menu at the top of the page which is working fine but I’ve added a secondary left menu to the left column which is currently showing the top menu despite it being selected in the admin to show the left menu.
In my functions.php I have:
register_nav_menu( 'left-menu', __( 'Left Menu', 'rsi' ) );
register_nav_menu( 'top-menu', __( 'Top Menu', 'rsi' ) );
Then in my theme files I’ve called them up using:
<?php wp_nav_menu( array('rsi' => 'left-menu' ));?>
<?php wp_nav_menu( array('rsi' => 'top-menu' ));?>
What am I missing?
You need to pass an array of menus to the
register_nav_menu
function like so:You then call them in your theme: