Shortcode in Menus Shortcode in Menus

Shortcode in Menus

Created by: Gagan Deep Singh

Rating:
Downloaded: 473k times

Allows you to add shortcodes in WordPress Navigation Menus so that you can generate links dynamically. Also allows you to add full fledged HTML sections to navigation menus.

Usage

See the screenshots.

Also, see a great tutorial by Aurovrata Venet

Special Thanks To

Screenshots

  • Check the screen options, if you don't see the <em>Shortcode</em> box.
  • Check the Shortcode option to see the new Shortcode box.
  • Add your shortcode/HTML to the text area (not a link, in the screenshot). Optionally, add a title.
  • The menu item is saved.
  • The html is displayed.
  • Old Method: In the <em>Links</em> box, add your shortcode in the URL field.
  • Old Method: If you want to use a shortcode that outputs not just the URL, but complete HTML sections, write <em>FULL HTML OUTPUT</em> in the <em>Link Text</em> option for that link and it will output the complete HTML without breaking your site.
  • Old Method: The menu item is saved.

Categories

Get New Themes & Resources