Linux 软件免费装
Banner图

Shortcode in Menus

开发者 gagan0123
saurabhshukla
更新时间 2023年5月27日 16:49
PHP版本: 5.6 及以上
WordPress版本: 6.2.2
版权: GPLv2 or later
版权网址: 版权信息

标签

Shortcode Menus Custom Link

下载

1.0 1.1 1.2 2.0 2.1 3.0 3.1 3.3 3.4 3.5 3.5.1 0.1 3.2

详情介绍:

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

安装:

  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 https://wordpress.org, 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.

屏幕截图:

  • 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.

常见问题:

How to enter shortcode

You can add enter shortcodes in the "Custom Link" menu item, or you can use "Shortcode" menu shortcodes in menus. Screencast for using WordPress' default "Custom Links" menu item: https://www.youtube.com/watch?v=NIu-e9XjEXM Screencast for using "Shortcode" menu item: https://www.youtube.com/watch?v=a7oZq1fgDO4

How to view/edit "Shortcode" menu item

You will need to enable displaying of "Description" in order to view/edit "Shortcode" menu item. Here's a screencast for the same: https://www.youtube.com/watch?v=IzaUf5KHehg

更新日志:

3.5.1 3.5 3.4 3.3 3.2 3.1 3.0 2.1 2.0 1.2 1.1 1.0 0.1