Navigation Switcher
The Navigation Switcher allows you to add dynamic navigation control to your theme. It allows the user to choose what type of navigation they want in the theme.
Developer
To use the Navigation Switcher you must include the following code in your theme where you want the navigation to be placed (usually in the header).
<?php if(function_exists('wtf_navigation')) wtf_navigation(); ?>
You can include this as many times as you want in your theme and will output the selected type of navigation as chosen on the options page.
Advanced
This method can take two arguments:
wtf_navigation($page_options, $cat_options);
- $page_options
- Default –
'title_li=' - Description – This takes the arguments that are normally passed in to the wp_list_pages() method. See the official Wordpress documentation for more information.
- Default –
- $cat_options
- Default –
'show_count=0&title_li=' - Description – This takes the arguments that are normally passed in to the wp_list_categories() method. See the official Wordpress documentation for more information.
- Default –

