WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 5 down vote accepted

You need to pass an array of menus to the register_nav_menu function like so:

        'menu-1' => 'Menu Top',
        'menu-2' => 'Menu Bottom'

You then call them in your theme:

<?php wp_nav_menu( array( 'theme_location' => 'menu-2' ) ); ?>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.