BACK TO DIRECTORY

Shortcode in Menus

by Gagan Deep Singh

4.7
(82 ratings)

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 Shortcode box.

Check the screen options, if you don't see the Shortcode box.

Check the Shortcode option to see the new Shortcode 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.

Add your shortcode/HTML to the text area (not a link, in the screenshot). Optionally, add a title.

The menu item is saved.

The menu item is saved.

The html is displayed.

The html is displayed.

Old Method: In the Links box, add your shortcode in the URL field.

Old Method: In the Links 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 FULL HTML OUTPUT in the Link Text option for that link and it will output the complete HTML without breaking your site.

Old Method: If you want to use a shortcode that outputs not just the URL, but complete HTML sections, write FULL HTML OUTPUT in the Link Text option for that link and it will output the complete HTML without breaking your site.

Old Method: The menu item is saved.

Old Method: The menu item is saved.

Plugin Details

Active Installs
50K+
Total Downloads
509,678
Version
3.5.1
Requires WP
3.6
Requires PHP
5.6
Tested Up To
6.9.7
Added
2013-09-13
Last Updated
2026-02-10 8:23am GMT

Ratings

5
74
4
2
3
0
2
1
1
5