I created two menus
but when I call the main menu I get the other one.
I am using this in the header.php to call the main menu
<?php wp_nav_menu( array( 'top_nav' => 'topNav' ) ); ?>
but get the menu for engineering
and I use this
wp_nav_menu( array( 'eng_nav' => 'engNav', 'container_class' => 'container' ) );
in an entirely diff page but this one is showing up as the top menu in the main page (thebigmeow.us)
so far the menu that works is the one that has the original html next to the search box.
It has been a while since I done WP. but your first argument is invalid. I think it should be : <?php wp_nav_menu( array( ‘menu’ => ‘topNav’ ) ); ?>
if you wished to give the menu UL an ID of ‘topNav’ then you will need the additional argument of ‘menu_id’=>‘topNav’ if you wanted the ID on the wrapper element and not the UL then you’d use ‘container_id’ => ‘topNav’.
always checked the WP codex. http://codex.wordpress.org/Function_Reference/wp_nav_menu
Speaking of, WP forum experts feel free to correct me if I missed my mark.
Yes I agree with @dresden_phoenix. It should be
<?php wp_nav_menu( array( ‘menu’ => ‘topNav’ ) ); ?>
as mentioned and not
<?php wp_nav_menu( array( ‘top_nav’ => ‘topNav’ ) ); ?>
that you have coded.
finally got to try this & think it worked. thank you!