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

My problem is that wordpress isn't showing the two menu's as separate menus, it just outputs on menu to both positions.

URL: http://www.msc-media.co.uk

Check the header and footer for the links - I know the footer is ugly, need to sort out the css later.

I've created two menus in the functions.php with this code.

    register_nav_menus( array(
        'topmenu' => 'Top Menu',
        'footermenu' => 'Footer Menu',
    ) );


I've then called these menu's in my footer.php and header.php with this code:

<?php wp_nav_menu(array('menu' => 'footermenu')); ?>
<?php wp_nav_menu(array('menu' => 'topmenu')); ?>

This is my back-end config with wordpress, getting the top menu to show 4 links, and the footer to display two. With the positions correctly appointed.

enter image description here

Can anyone explain what is wrong with this? - I'm stumped and I've searched the WP codex/forums for hours now.

share|improve this question

migrated from stackoverflow.com May 15 '12 at 22:49

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted


<?php wp_nav_menu(array('theme_location' => 'footermenu')); ?>
<?php wp_nav_menu(array('theme_location' => 'topmenu')); ?>

See http://codex.wordpress.org/Function_Reference/wp_nav_menu

share|improve this answer
Worked perfectly, what are the differences between 'theme_location' and 'menu'? – MChandler May 15 '12 at 22:55
@MChandler Menu accepts the slug of the menu you've created. Theme location accpets a registered theme location. The user can then create a menu, and assign to one (or more) locations, where it will then appear. In theme development, you should never use the 'menu' attribute. – Stephen Harris May 15 '12 at 23:03

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.