/csst-nav

Demo Widget for CSS Tricks Article

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

CSST Nav Shortcode

A shortcode for outputting a custom menu via a custom walker class.

Contributors

scofennell@gmail.com

Tags

CSS-Tricks, Article, WordPress, Shortcode, Walker.

Requires at least

4.3.1

Tested up to

4.3.1

Stable tag

1.0

License

GPLv2 or later

License URI

http://www.gnu.org/licenses/gpl-2.0.html

Description

A shortcode for outputting a custom menu via a custom walker class.

Installation

  1. Upload the csst-nav folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Use the shortcode [csst_nav which_menu='5'] in any post, where 5 is the ID, name, or slug of a custom menu.

Screenshots

The finished product.

Using the shortcode in the post editor screen.

A demonstration of the $depth arg from the start_el() method.

Changelog

1.0

Initial release.