I just noticed something weird I never saw before. I'm working on a project using WP 3.6.1. This project that has two different menus (actually, three, but that's not important). I'm calling them through the wp_nav_menu
function.
I've done this kind of thing quite a few times now... but today is different. Today it doesn't work :(
My PHP code, placed in header.php, looks like this:
<nav id="nav-menu-container">
<div id="main-menu" class="main-menu menu clearfix">
<?php wp_nav_menu('header_main'); ?>
</div>
<div id="secondary-menu" class="secondary-menu menu clearfix">
<?php wp_nav_menu('header_secondary'); ?>
</div>
</nav>
The menu items are declared in functions.php
and two different Menus are configured through the dashboard to show up in each location.
if (function_exists('register_nav_menus')){
register_nav_menu('header_main', 'Menú principal' );
register_nav_menu('header_secondary', 'Menú secundario' );
}
But the first menu keeps on being printed in the two locations. As I said above, using two different menu is something that Ive done in the past, but today I don't see the error... and there is and error, as it is not working :S
Any ideas?