'fallback_cb' => false.. Not Working!
-
Hi! I’ve created custom menus in my sidebar which get called dynamically based on a field value in the page. However, I don’t want to see any menu on those pages without the field set. My homepage is showing my main menu although I have a fallback set to false. Please tell me what I’m missing.
<?php wp_nav_menu( array( 'fallback_cb' => false , 'container' => 'div', 'container_class' => ' widget_wrap widget_nav_menu', 'theme_location' => 'primary', 'menu' => get_post_meta( $post->ID, 'MenuName', true) ) ); ?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘'fallback_cb' => false.. Not Working!’ is closed to new replies.