Advanced Navigation Menus

by Caio Costa

Overview


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

Discuss


Summary
Version:
0.6.5
Last updated:
Active installations:
WordPress Version:
3.0 or higher
Tested up to:
3.4.2
Ratings