Shortcode in Menus – WordPress plugin Free download

Click to Download

Shortcode in Menus

Description

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

Aurovrata Venet for this great tutorial.
Lee Willis for finding out and helping in resolving this bug.
Dennis Hunink for reporting this bug.
@hbwarper for providing a patch to Dennis’ issue.

Screenshots

Check the screen options, if you don’t see the 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.
The menu item is saved.
The html is displayed.
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: The menu item is saved.

Installation

Add the plugin’s folder in the WordPress’ plugin directory.
Activate the plugin.
You can now add ShortCodes in the custom links of the menus.
To test this, you can add a custom link with a ShortCode [gs_test_shortcode] as link, if it points to https://wordpress.org, plugin is working
If you want to use a ShortCode that outputs not just the url, but complete HTML sections, please make use of the title ‘FULL HTML OUTPUT’ for that link and it will output the complete HTML without breaking your site.

Reviews

Leave a Reply

Your email address will not be published. Required fields are marked *