wp nav menu multiple uses on same page
-
Is there a known issue or practice around using wp_nav_menu() multiple times on the same page?
I used it to call ‘menu’ => ‘Menu Name’ for three different menus in header.php and the second two would act as if the named menu didn’t exist. Also using Theme Location didn’t get the desired menu either. To be clear I am using 3 instances of wp_nave_menu(), I registered the menu locations in functions with register_nav_menus.
I was able to call all three menus by getting the menu ID.
I’m just trying to understand why this wasn’t loading.
Also I think this question should go in WP Advanced but that forum is closed.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp nav menu multiple uses on same page’ is closed to new replies.