>
Download This Plugin | |
Download Elegant Themes | |
Name | WordPress wp nav menu Filter |
Version | 1.1 |
Author | Travis Hoglund |
Rating | 100 |
Last updated | 2014-07-30 01:00:00 |
Downloads |
6562
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
WordPress wp nav menu Filter plugin added 13 bytes of resources to the Home page and 29 bytes of resources to the sample Post page.
WordPress wp nav menu Filter plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! WordPress wp nav menu Filter plugin ads no tables to your Wordpress blog database.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)
));