I created some menus, and now I’m trying to set up a conditional construction with wp_nav_menu in header.php, but the behavior is not really as expected. I’m doing something like
<?php
if ( is_front_page() )
{
wp_nav_menu( array( 'container_class' => 'menu-header', 'menu' => '68' ));
}
elseif ( is_single() )
{
wp_nav_menu( array( 'container_class' => 'menu-header', 'menu' => '69' ) );
}
else
{
wp_nav_menu( array( 'container_class' => 'menu-header', 'menu' => '33' ));
}
?>
the last “else” catches 404s and pages, but with archives (categories, tags, search, author, …) the menu falls back to the default fallback (wp_list_pages) instead of menu 33. Any ideas why this is happening? Note: I’m modifying the TwentyTen theme.