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

In my menu area of the word press admin I have access to place links in both the h "main menu" and the "footer links"

    'main_nav' => 'The Main Nav',
    'footer_links' => 'The Footer Links'

In the Header:

wp_nav_menu(array('menu' => 'The Main Nav'));

In the Footer:

wp_nav_menu(array('menu' => 'The Footer Links'));

In the header Nav, I have a link to the default sample page, in the footer I have a link to google. I save the menus and look at the front end, I get the sample page link in both the header and the footer.

for further proof that I have two menus:

enter image description here

What's going on?

share|improve this question
up vote 0 down vote accepted

The correct way to get a specific menu is the 'theme_location' parameter:

wp_nav_menu(array('theme_location' => 'main_nav'));
wp_nav_menu(array('theme_location' => 'footer_links'));
share|improve this answer
Thought so, I read something on that, i though menu would do the same – TheWebs Apr 7 '13 at 17:53

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.