how to test for wp_nav_menu
-
when I activate my theme, it looks bad without the wp_nav_menu set up. So I am trying to code for that exception. So I tried wp_list_pages
if(wp_nav_menu('primay')){ wp_nav_menu(); } else { wp_list_pages }
My problem is that wp_nav_menu is always used even though I am testing for the nav menu called primary which at this point should not be set up and working.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘how to test for wp_nav_menu’ is closed to new replies.