I have a question regarding something that is not working properly, I have a menu that is not working, currently with my theme I have 10 menus, one being the main nav and the rest are needed for special purposes, the thing is, the main one is not working, is taking the menu values from one of the other menus, but I'm sure I'm referring that menu in the right way.

In my header I'm calling my menu like this:

<?php wp_nav_menu( array('menu' => 'Main', 'menu' => 'menu_center' )); ?>

And in my functions.php I have this:

if ( function_exists('register_nav_menus')) {
    register_nav_menus( array(
        'main' => 'Main Nav',
        /* FOOTER MD USA */
        'footer-opinion' => 'Footer Opinion',
        'footer-noticias-economicas' => 'Footer Noticias Economicas',
        'footer-consumo' => 'Footer Consumo',
        'footer-empresas' => 'Footer Empresas',
        'footer-noticias-actualidad' => 'Footer Noticias de Actualidad',
        'footer-suplementos' => 'Footer Suplementos',
        'footer-finanzas' => 'Footer Finanzas',
        'footer-spotlight' => 'Footer Spotlight',
        'footer-otras-publicaciones' => 'Footer Otras Publicaciones'
    ) );

But the main nav menu is not working is displaying one of the footer menus and this is driving me crazy, any idea guys what I'm doing wrong?


1 Answer 1


You have menu two times as parameter, you probably want:

wp_nav_menu( array('theme_location' => 'main', 'menu' => 'menu_center' ));


From your comments I'm getting that you're missing some information about the whole topic, e.g. the difference between the description and the name of a menu. To resolve this you really should just read the according documentation thoroughly:

  • Thanks for the edit and for the response, in your example you have theme_location, should I leave that like you suggested?
    – Arturo
    Commented Nov 29, 2013 at 22:23
  • One thing I noticed is this, when I try to load the new theme and add the new menus it keeps the old menus from the old theme
    – Arturo
    Commented Nov 29, 2013 at 22:24
  • You don't need theme_location, I was just assuming this might be what you want. Commented Nov 29, 2013 at 22:26
  • Thanks, then, sorry but this should be like wp_nav_menu( array('Main Nav' => 'main', 'menu' => 'menu_center' ));?
    – Arturo
    Commented Nov 30, 2013 at 1:27
  • Sorry mate, I actually can't see the difference, too late. Have you read wp_nav_menu() @Arturo Commented Nov 30, 2013 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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