Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //Display custom menu in your template file
- //This is for WordPress 3.0 and above
- if(function_exists('wp_nav_menu') && has_nav_menu('boys_teams')):
- wp_nav_menu(
- array(
- 'theme_location' => 'boys_teams',
- 'container' => 'div',
- 'menu_class' => 'boys-teams-menu-class',
- 'depth' => 2
- )
- );
- //If either this is for WP version<3.0 or if a menu isn't assigned, use wp_list_pages()
- else:
- echo '<ul class="boys-teams-menu-class">';
- wp_list_pages('depth=1&title_li=');
- echo '</ul>';
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment