WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress wp nav menu Filter

Adds the ability to pass an argument (pageID or page name) to show a filtered submenu with wp_nav_menu().

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:

  1. Display submenu on internal pages
  2. Display submenu in footer blocks

Inside template files:

By Page Name

<?php wp_nav_menu(array(
      'menu' => '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'
    )); ?>

Requires: 3.0.0 or higher
Compatible up to: 3.9.2
Last Updated: 2014-7-30
Downloads: 5,778

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
0,1,0