I am making a WordPress theme and I am using the WP menus option. I enabled it in the functions.php file using this code:
//enable WP 3.0 menus
add_theme_support( 'menus' );
if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
'top_menu' => 'Top Menu',
'bottom_menu' => 'Bottom Menu'
)
);
}
Then I used this code in my header.php and footer.php:
if(function_exists('register_my_menus')):
wp_nav_menu(
array(
'menu' =>'top_menu',
'container'=>'',
'depth' => 1,
'menu_id' => 'menuTop' )
);
endif;
and
if(function_exists('register_my_menus')):
wp_nav_menu(
array(
'menu' =>'bottom_menu',
'container'=>'',
'depth' => 1,
'menu_id' => 'menuBottom' )
);
endif;
I cannot figure out why they wouldn't show up at all, I am pretty sure they were showing when I was first configuring it. However, after a day or two when I started working on it again, it doesn't even show up. If for whatever reason it helps, here is my website: http://connorcrosby.net/blog. Thank you!