Skip to content

Plugin allows adding shortcodes in the custom links of the WordPress Menus for navigation instead of direct links.

Notifications You must be signed in to change notification settings

actual-saurabh/Shortcode-in-Menus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortcodes in Menus

Allows you to add shortcodes in WordPress Navigation Menus

Description

Allows you to add shortcodes in WordPress Navigation Menus so that you can generate the links dynamically.

To test this, you can add a custom link with a ShortCode [gs_test_shortcode] as link URL, if it points to http://gagan.pro, plugin is working, if not(even any other ShortCode), then please write a new support ticket with ticket with the ShortCode you used and from which plugin/function that ShortCode is from, so that I'll be able to help you better.

PLEASE NOTE: If you want to use a ShortCode that outputs not just the URL, but complete HTML sections, put "FULL HTML OUTPUT" in the "Link Text" option for that link and it will output the complete HTML without breaking your site.

Installation

  1. Add the plugin's folder in the WordPress' plugin directory.
  2. Activate the plugin.
  3. You can now add ShortCodes in the custom links of the menus.
  4. 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
  5. 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.

Changelog

0.1

  • Initial Plugin uploaded.

1.0

  • Added prefix to function which was conflicting with another plugin

1.1

  • Tested with WordPress 4.0

1.2

  • Added ability to echo complete HTML output instead of just URL by using ShortCode

About

Plugin allows adding shortcodes in the custom links of the WordPress Menus for navigation instead of direct links.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 55.8%
  • Shell 28.9%
  • JavaScript 15.3%