wp_nav_menu outputting nothing!
-
I’m mystified.
I’ve got a
register_nav_menus
call attached to thewp_loaded
hook like this:register_nav_menus(array('footer' => 'Footer links'));
I’ve created a nav and added links in the admin interface, then saved. Next, I’ve applied that menu to the ‘Footer links’ location, and have saved.
Lastly, in
footer.php
I do thisecho has_nav_menu('footer') ? 'true' : 'false'; wp_nav_menu(array('theme_location' => 'footer'));
and all that’s showing is ‘true’. The ‘theme_location’ property just doesn’t seem to be working. I can get the menu to show by doing this
wp_nav_menu(array('menu' => 'Footer menu name'));
but of course that’s not as good. Can anyone tell me what I’m doing wrong?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_nav_menu outputting nothing!’ is closed to new replies.