這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Simple shortcode buttons

描述

Add shortcode buttons to your WordPress editor to make shortcode inserting really easy.

螢幕截圖

  • Added buttons - gallery button with custom SQL query and GIF button with thumbnail and GIF image input fields.
  • Gallery and GIF buttons in WP Editor toolbar
  • Inserting gallery shortcode via shortcode button
  • Example gallery shortcode setup

安裝

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Simple shortcode buttons’
  3. Activate Simple shortcode buttons from your Plugins page.

From WordPress.org

  1. Download Simple shortcode buttons
  2. Upload the ‘dp-shortcode-buttons’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate Simple shortcode buttonsfrom your Plugins page.

常見問題

Options

There are various options users can edit when adding new buttons or editing existing ones:

Shortcode – name of your shortcode
Icon – icon that will represent your shortcode in editor
Title – title that will be shown as popup title and hover text when hovering over the button icon
Enclosing shortcode – read more about enclosing shortcodes here.

Attributes

Every shortcode can have multiple attributes which you can add by clicking on Add new attribute option. Attribute options are:

Attribute – attribute name
Label – text that will be shown above attribute value input field
Values – values to be selected from. Values can be any post type (eg. ‘post’, ‘page’, ‘custom-post-type’), comma seperated values (eg. option 1, option 2), comma seperated pairs of values and labels, seperated with pipe (eg. 1|label 1, 2|label 2) or free input (leave empty)
Multi – defines if user can select multiple options (not used when free input)
SQL – custom value selected directly from database via SQL. Query result must return value and label fields. SQL query overwrites Values option of attribute.

評價

2019年1月28日
This plugin has the potential to be amazing but it needs an option to select values from a drop-down to make it easy to use for a user who isn't the developer and doesn't know all of the shortcode values available. It should also have a dark overlay when the popup comes up behind the popup. Some work to make it better with Gutenburg would be nice.
2016年9月3日
May need a little polishing in terms of UI but works great.
2016年9月3日 1 reply
Very useful plugin for the Web designer who creates the WP-blogs for "blondes". 🙂 Thank you very much, it's really cool! David, did you think about the localization of the plugin?
閱讀全部4個評價

貢獻者及開發者

“Simple shortcode buttons” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Simple shortcode buttons 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3.2

  • Fixed a major save bug when no buttons were added

1.3.1

  • Fixed a typo that caused PHP warning

1.3

  • Fixed a bug where activation of the plugin would fail on older PHP servers

1.2

  • Completely rewritten button saving and added Import/Export options. Important notice for pre 1.2 users: If you wish to keep your saved buttons, you need to copy the contents of the shortcodes.js file in your /wp-content/plugins/simple-shortcode-buttons/ plugin installation location, update the plugin and then import them via Import buttons tab in plugin options.
  • Input values must now be separated with semilocon (;) instead of comma. Important notice for pre 1.2 users: Make sure you edit your attribute values accordingly to the change.

1.1

  • Fixed number of displayed post when setting attribute value as post type – select input shows all posts of defined post type now

1.0

  • Initial version