wp_nav_menu Extended!

Description

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 );

Installation

  1. Upload the wp-nav-menu-extended folder to the /wp-content/plugins/ directory
  2. Activate the wp_nav_menu Extended! plugin through the ‘Plugins’ menu in WordPress
  3. You can now use the new options in your code!

Reviews

Excellent

Thank you for this plugin. Works with WP 4.9.5.

Just works.

Looked around for hours, and found nothing but hacky fixes. This displays your sub nav items in any div you want/in any spot you want. This plugin is great!

Read all 6 reviews

Contributors & Developers

“wp_nav_menu Extended!” is open source software. The following people have contributed to this plugin.

Contributors