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.
This new version adds a Shortcode box on the Nav Menus screen. The earlier functionality using the Links box will be deprecated over the next few versions. Please switch to this new box, asap.
See the screenshots.
Also, see a great tutorial by Aurovrata Venet
Special Thanks To
- 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 http://gagan.pro, 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.
Used this plugin to add a search bar to my menu. Works exactly as I’d hoped.
cazzo se funziona, ottimo
I needed my modal login shortcode to display in my secondary navigation. This plugin did exactly that. A million thank yous.
This saved me having to re-work the menu – excellent work!! Thank you!
What can I say..
It lets me put a short-code in the nav menu, same way you would add links.
So I can display a radio player in my nav menu, or anything else.. thanks a lot!
Thanks mate, this works great.
Contributors & Developers
“Shortcodes in Menus” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Initial Plugin uploaded.
- Added prefix to function which was conflicting with another plugin
- Tested with WordPress 4.0
- Added ability to echo complete HTML output instead of just URL by using ShortCode
- Added new Shortcode box to Menu Editor
- Added html support.
- Deprecated Links box basis.
- Added screenshots
- Updated readme and instructions
- Bug fix for custom links with ShortCode like structure not being displayed in the nav menus.
- Removed the error trigger on the FULL HTML OUTPUT usage
- Added the feature to use shortcodes in titles of menu items as well(works with all types of menu items)
- Resolved the PHP Notice, popping up in the error log while adding new shortcodes