Nav Menu Display

Register your menus in functions.php like so: if ( function_exists( ‘register_nav_menus’ ) ) { register_nav_menus( array( ‘my_main_menu’ => ‘Main Menu: description’, ‘my_sub_menu’ => ‘Sub Menu: description’, ‘my_footer_menu’ => ‘Footer Menu: description’ ) ); } Add the menu to the template like so: <?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘theme_location’ => ‘my_main_menu’, ‘container_class’ => ‘main-menu’ ) … Read more

Second tier sidebar navigation

For now I have decided to use a CSS solution. I realized with the code above I do actually have classes I can work with. For example if you had this navigation in a you could use something like this. nav.sidebar li li li { display: none; } nav.sidebar li li.current_page_item > ul > li, … Read more

WordPress Navigation default output

wp_nav_menu is what you are looking for. Here are some examples. Using the depth parameter you can change the level of sub-menu. 0 leads to all levels. Ex. <?php $defaults = array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => … Read more