Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

for some reason the menu is not falling back to the default page menu.

Am i doing something wrong?

Here is my register of the navigation:

register_nav_menus(array('primary' => __( 'Primary Navigation', 'themetranslation' ))); 

Here is my navigation input in the header:

wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav nav-pills', 'depth' => 2, 'walker' => new mypcustomWalker() ) );

I have not set the fallback_cb as this is set to false as default which means it should fallback to the default wp_page_menu();

But for some reason if a primary menu is not set, nothing appears which means that the default is not being fallen back too.

I have pages in from the unit test which WordPress supplies.

Any ideas why this is not falling back?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.