Add shortcode buttons to your editor.
Author: | davidp (profile at wordpress.org) |
WordPress version required: | 4.0.1 |
WordPress version tested: | 4.3.6 |
Plugin version: | 1.3.2 |
Added to WordPress repository: | 04-10-2015 |
Last updated: | 27-10-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 86 |
Rated by: | 4 |
Plugin URI: | http://davidp.net/simple-shortcode-buttons |
Total downloads: | 2 319 |
Active installs: | 50+ |
Click to start download
|
Screenshots
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
FAQ
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.
ChangeLog
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