Wordpress plugins
WordPress wp nav menu Filter

WordPress wp nav menu Filter

Version : 1.1
Tested up to : 3.9.20
Number of download : 7921
Average rating : 5 / 5 on 2 votes 2 votes, 5 avg.rating

Screenshots

WordPress wp nav menu Filter
WordPress wp nav menu Filter
WordPress wp nav menu Filter
WordPress wp nav menu Filter

If you have built custom WordPress themes, you have probably ran into needing to display navigation on subpages. Rather than try to manage several navigation menus, or try to output menus with wp_list_pages(), why not manage everything from a single menu, and just pass different parameters to show what you want? Makes sense to me… To use it, simply add a ‘submenu’ parameter to the arguments of wp_nav_menu, like so: wp_nav_menu(array( 'menu' => 'header', 'submenu' => 'Solutions' //Using parameter of Page Name )); ---- OR ---- wp_nav_menu(array( 'menu' => 'header', 'submenu' => '46' //Using parameter of Page ID (!important - Passing ID in STRING FORMAT) )); A brief Markdown Example What can it do for me? Display submenus controlled by one simple navigation menu created through the WordPress Interface Most Common applications: Display submenu on internal pages Display submenu in footer blocks Inside template files: By Page Name ‘header’, ‘submenu’ => ‘Solutions’ )); ?> By Current Page <?php wp_nav_menu(array( 'menu' => 'header', 'submenu' => ''.$post->ID.'' )); ?> By Specific Page ID <?php wp_nav_menu(array( 'menu' => 'header', 'submenu' => '46' )); ?>

Download now