I just did a fresh install of WordPress to test my new theme. When I go to the site, the 2011 theme is active and the pages shown are "Home Sample Page" looking in the functions.php file, I would assume this code makes home show
function savior_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'savior_page_menu_args' );
When I activate my theme, only "Sample Page" Shows in the navigation even though I have the same code above in my theme. So I wasn't sure if this chunk of code above just takes care of adding home in the list for the menu or if it makes the home link appear in the default menu. I have been looking through the 2011 functions.php file trying to figure out how WordPress has home showing in the nav link by default without the primary menu set but I can't find it.
I have this in my header
<?php $args = array('theme_location' => 'primary', 'container_class' => false, 'container' => '', 'menu_id' => 'navigation'); ?>
<?php wp_nav_menu( $args ); ?>
I know that when the primary menu isn't set, WordPress defaults to another menu. I don't remember exactly what it's called at this moment. But my pages are displaying. Can you shed some light on this?