wp_nav_menu Extended!

Adds missing functionality to the native wp_nav_menu() function

Author:Junaid Bhura (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:5.9
Plugin version:1.0.2
Added to WordPress repository:12-02-2015
Last updated:29-01-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:7
Plugin URI:
Total downloads:7 774
Active installs:1 000+
plugin download
Click to start download

Add missing functionality to the native wp_nav_menu() function!

With this plugin you can now use the following options in addition to the default options of wp_nav_menu:

level : (integer) (required for this plugin to work) The level of the navigation menu to show. If no child_of parameter is passed, it shows all the items of this level

child_of : (string|integer) (optional) Either the title or menu item ID of the parent in the menu whose direct children are to be shown

Sample Usage

$defaults = array(
‘theme_location’ => ‘main_menu’,
‘level’ => 2,
‘child_of’ => ‘About Us’,
);

wp_nav_menu( $defaults );