This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Advanced Navigation Menus

Description

Advanced Navigation Menus adds missing functionality in the navigation system by accepting shortcodes and adding
CSS tags on each item.

Features

  • CSS classes for nearly every need
  • Shortcodes
  • URL replacements (no link, login, logout)

Classes

  • first-item and last-item in each depth
  • Sub-menus have their own depth-#.
  • Parent ID on each menu item
  • Menu Parent ID on each menu item
  • No parent class
  • Global item order
  • Menu item order
  • Identify menus with sub-menus

Shortcodes

  • [%user_login%] – User login
  • [%user_ID%] – User ID
  • [%user_firstname%] – User first name
  • [%user_lastname%] – User last name
  • [%user_email%] – User email
  • [%user_displayname%] – User display name

See more on the usage instructions page.

Usage

CSS

After activating the plugin you will already have several CSS classes added to your menu. Check the
screenshots to take a look at them.
No more browser incompatibility with :last-child!

URL replacements

Use the following in a custom link URL field
* #nolink# – The item will not be printed as a link.
* #login# – Login link. Same as wp_login_url( get_permalink() ).
* #logout# – Login link. Same as wp_logout_url( get_permalink() ).

Shortcodes

You can also use shortcodes in your menus, like Hi, user!.

Accepted shortcodes

  • [%user_login%] – User login
  • [%user_ID%] – User ID
  • [%user_firstname%] – User first name
  • [%user_lastname%] – User last name
  • [%user_email%] – User email
  • [%user_displayname%] – User display name

  • [%date%] – Current date

Screenshots

  • CSS classes everywhere!
  • Menu item name on backend
  • Menu item name on frontend

Installation

  1. Upload the folder advanced-navigation-menus to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place the menus in your template using wp_nav_menu()

See usage instructions
for more information.

Contributors & Developers

“Advanced Navigation Menus” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.6.5

  • Added: #login# and #logout# URL replacements

0.6.4

  • Changed: class “have_sub-menu” to “has_sub-menu”

0.6.3

  • Little code improvement

0.6.2

  • Fixed: variable reference bug with plugin.php

0.6.1

  • Fixed: first-item and last-item placed only in the last item

0.6

  • Added: CSS class for menus with sub-menus
  • Deprecated: identify_first_and_last in favor of identify_nodes

0.5

  • Changed: date shortcode now returns localized date

0.4.1

  • Added: menu item order (former sub-menu item order), gone in last update
  • Added: date shortcode

0.4

  • Added: support to sub-menus deeper than one level
  • Changed: Sub-menu depth now starts at 1 (ul.sub-menu.depth-1)

0.3.1

  • Bugfix
  • Added: span.text wrapper to dummy texts

0.3

  • Added: support to dummy text (no link)

0.2

  • Added: shortcodes.
  • Added: screenshots.
  • Changed: description, to better reflect the plugin purpose.

0.1

  • Unstable, untested, don’t-use-it-yet beta version