0

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"

register_nav_menus(array(
    '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?

0

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'));
  • Thought so, I read something on that, i though menu would do the same – TheWebs Apr 7 '13 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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