wp_nav_menu Extended!

Descrição

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

Instalação

  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!

Avaliações

15 de Abril, 2018
Thank you for this plugin. Works with WP 4.9.5.
22 de Novembro, 2017
Thank you for answering this question on Stack Exchange! That's how I found your plugin, and it's exactly what I needed. Thank you!
3 de Setembro, 2016
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!
Ler todas as 7 avaliações

Contribuidores e programadores

“wp_nav_menu Extended!” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

Traduza o “wp_nav_menu Extended!” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.