Plugin info

Total downloads: 3,831
Active installs: 60
Total reviews: 3
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/30/2011 (5236 days ago)
Added to WordPress: 8/30/2011 (14 years old)
Minimum WordPress version: 3.1
Tested up to WordPress version: 3.2.1
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5236 days ago • 3 reviews

22/100

Is Section Subnav abandoned?

Possibly abandoned (last update 5236 days ago).

Compatibility

Requires WordPress: 3.1
Tested up to: 3.2.1
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Advanced Menu Widget
Rating 4.8/5 (25 reviews)Active installs 5,000
Custom Menu Wizard Widget
Rating 4.7/5 (49 reviews)Active installs 3,000
WP Widget in Navigation
Rating 4.7/5 (15 reviews)Active installs 3,000
Simple Sidebar Navigation
Rating 3.0/5 (2 reviews)Active installs 200
Collapsing Pages
Rating 0.0/5 (0 reviews)Active installs 200
Menubar Widgets
Rating 4.9/5 (7 reviews)Active installs 100

Description

This is a simple plugin that was born out of working on several projects with sectional navigations. For example, consider the following common navigation tree structure:

  • Home
  • Item
  • About Us
    • Sub-item #1
    • Sub-item #2
  • Item
  • Item

Then, whenever on the “About Us” page or any of its sub-items, it would output that peice of the navigation:

  • About Us
    • Sub-item #1
    • Sub-item #2

This is particularly useful for websites that have a top horizontal navigation which shows top-level items and want to show a vertical subnavigation in the sidebar.

This plugin works by parsing the output of the wp_nav_menu function as XML and analyzing the CSS class hooks (current-menu-ancestor, current-menu-item, and current-menu-parent). Because it uses PHP’s SimpleXML library it therefore requires PHP 5+. It uses the theme’s registered menu locations.

This plugin also exposes the section_subnav() function for theme developers to use as a template tag to manually place a subnav inside the theme. Here is the usage:

 '",
        'before_title' => '

', 'after_title' => '

', 'echo' => true )); ?>

It returns false when there is no subnavigation.

This function also provides the section_subnav_args filter hook for writing less code and easier integration with other plugins and child themes.

Installation

This section describes how to install the plugin and get it working.

  1. Upload section-subnav to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the widget to a sidebar or use the section_subnav() function in one of your theme templates.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.9

  • Initial release.