该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Shortcode Lister

描述

Shortcode Lister is a plugin designed to display a drop down menu of all the shortcodes available to use in your posts and pages. This menu will allow you to select a shortcode and have it automatically inserted into the editor for you.

If you have downloaded several plugins that produce their own custom shortcodes, it may become cumbersome to remember all of the shortcodes you have available to use. In a way this defeats the purpose of having an easy to use shortcode, if it is too difficult to remember them all.

This plugin solves that problem, by producing a clean, easily accessible menu of all the custom/third party added, and WordPress default shortcodes that you are able to use inside your posts and pages.

屏幕截图

  • Shortcode Lister drop down menu. screenshot-1.png
  • Shortcode Lister settings allows you to exclude some shortcodes from your drop down menu. screenshot-2.png

安装

  1. Download archive and unzip in wp-content/plugins or install via Plugins – Add New.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. View your list of available shortcodes in the Page or Post editor screen.

常见问题

Does this plugin list default shortcodes that come with WordPress?

Yes. According to the WordPress Codex, the following are built-in shortcodes that will be shown in the Shortcode Lister: [audio] [caption] [embed] [gallery] [video]

Can your plugin display the shortcode attributes?

Shortcode attributes are created inside of the function that creates the shortcode, and are not available globally. For that reason we are unable to display the attributes.

What about shortcodes from other plugins?

Most shortcodes created by plugins you have downloaded will be included in Shortcode Lister found on your Post or Page edit screen. If you have a plugin that produces shortcodes and it is not listed in the Shortcode Lister menu, please let create a support ticket.

Why would I need this plugin?

If you like wasting time by under using shortcodes that have been provided to you by the great plugins you have downloaded, then you probably do not need this plugin.

If you are like thousands of other people who want to use WordPress to its full potential, shortcodes are a great way to save time. This plugin will save you even more time if your list of shortcodes gets too big for you to remember all of them.

I have too many shortcodes, how can I remove some of them from the list?

A lot of times plugins will create a shortcode that only needs to be used once, and you will likely never need to use it again. If you have a lot of those shortcodes, you can visit the settings page (Settings > Shortcode Lister), and check the box next to each shortcode you want to remove from the list. Now when you view the shortcode menu you will have a nice clean list of shortcodes that can be easily sorted through without the clutter.

How do I insert the shortcode into my post?

Simply click where you want the shortcode to be inserted in your post editor, then select the shortcode from the menu. Your shortcode will be inserted automatically for you!

评价

2018 年 1 月 29 日 1 回复
Very handy! It will be even better to have an option to view shortcodes grouped by origin (built-in, some plugin, some theme). Best regards!
阅读所有3条评价

贡献者及开发者

「Shortcode Lister」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Shortcode Lister」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Shortcode Lister」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.1.1

  • Updated tested up to version.
  • Added Contributors.

2.1.0

  • Applied WordPress VIP coding standards. Thanks to Douglas Johnson for the Pull Request that incorporated these standards.
  • Removed unnecessary code that was used for “tabbing” the settings page. Only one setting page is needed so the additional tabs code is not needed.

2.0.2

  • Bug fix language text domain.

2.0.1

  • Bug fix on plugin file includes.

2.0.0

  • Rewritten plugin to allow for easier use.
  • NEW: Drop down menu above all editor boxes with a list of shortcodes. Selecting a shortcode from the menu inserts it into your post where your cursor is.
  • NEW: Settings page allows you to exclude some shortcodes from the drop down menu. Useful if you only use a shortcode once and do not need it on a regular basis.
  • NEW: Displays the shortcode menu on all post types (previously only showed a list on default post and page post types).
  • NEW: Included translatable strings and POT file. Submit translations to https://scottdeluzio.com/contact/

1.0.4

  • Minor update

1.0.3

  • Minor update
  • Updated to 4.0

1.0.2

  • Minor update
  • Updated to 3.8

1.0.1

  • Minor fixes.

1.0

  • Initial release.