Shortcoder

Wordpress Plugin
Download latest - 6.1

Developers

vaakash

Download Stats

Today 120
Yesterday 167
Last Week 1,226
All Time 226,254
Banner 772x250

Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and other snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.

Create custom shortcodes easily

  1. Give a name for the shortcode
  2. Paste the HTML/JavaScript as content
  3. Save !
  4. Now insert the shortcode [sc name="my_shortcode"] in your post/page.
  5. Voila ! You got the HTML/Javascript in your post.

Features

  • Create "custom shortcodes" easily and use them within WordPress
  • Use any kind of HTML as Shortcode content.
  • Insert: Custom parameters in shortcode
  • Insert: WordPress parameters in shortcode
  • Multiple editors: Code, Visual and text modes.
  • Globally disable the shortcode when not needed.

An example usage

  1. Create a shortcode named "adsenseAd" in the Shortcoder admin page.
  2. Paste the adsense code in the box given and save it.
  3. Use [sc name="adsenseAd"] in your posts and pages.
  4. Tada !!! the ad code is replaced and it appears in the post.
  5. Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.
  • Using this idea, shortcodes can be created for frequently used snippets.
  • You can also add custom parameters (like %%id%%) inside the snippets, and change it's value like [sc name="youtube" id="GrlRADfvjII"]

Resources

  • Documentation
  • FAQs
  • Support/Report bugs

Releases (46 )

Version Release Date Change Log
6.1 2022-11-06
6.0 2022-08-30
5.8 2022-06-21
5.7 2022-03-08
5.6 2021-09-06
5.5 2021-07-05
5.4 2021-03-17
5.3.4 2021-01-09
5.3.3 2020-11-03
5.3.2 2020-07-25
5.3.1 2020-05-02
  • New: Code editor is now made the default editor.
  • Fix: Minor changes to admin UI.
5.3 2020-04-07
  • New: Added support for underscores in custom parameters.
  • New: Getting ready for internationalization of the plugin.
  • Fix: Insert shortcode popup shows duplicate available parameters in case of same parameter with different case.
5.2.1 2020-03-02
  • Fix: Custom parameters being not replaced in some scenarios.
  • Fix: Minor enhancement to insert custom parameter form.
5.2 2020-03-01
  • New: Default values can now be provided to custom parameters.
  • Fix: Script tags, custom field placeholder and backslash being stripped after saving the shortcode sometimes.
  • Fix: Rel attribute being modified for links.
  • New: Added "Manage shortcodes" link to plugin list page for easy access after activation.
5.1 2020-01-12
  • New: Import/Export link added to the shortcoder list page.
  • Fix: empty() was throwing error at some places for users using PHP 5.5 below as function return value was passed to it.
  • Fix: Shortcoder QTTags button was loading in frontends.
  • Fix: "Insert shortcode" popup was hidden behind in theme customizer page.
  • Fix: array_key_exists array but bool given warning.
  • Fix: Hide comments metabox in shortcode edit page as it was shown in certain conditions.
5.0.4 2020-01-08
  • Fix: script and style tags stripped after 4.x upgrade. New migration will run in this version and shortcode content will now be fixed.
5.0.3 2020-01-07
  • Fix: Shortcode content is not escaped when code editor is used. This is requirement because post_content behaves strangely when user has rich editing enabled.
5.0.2 2020-01-06
  • Fix: Shortcodes inside shortcode content not getting executed.
  • Fix: Disable Gutenberg block for older not supported WordPress versions.
5.0 2020-01-05
  • New: Brand new version. Plugin rewritten from scratch.
  • New: Shortcoder block for the block editor.
5.0.1 2020-01-05
  • Fix: Code editor escaping HTML characters.
  • Fix: get_current_screen() undefined.
  • Fix: Code editor breaks if there is any other plugin which loads codemirror.
  • Fix: tools.php is not found.
4.6 2019-08-27
  • Fix: Show proper error when shortcoder saving fails.
  • Fix: Shortcode metadata throws undefined url error sometimes.
  • Fix: Show proper error when Code editor fails to load.
4.5 2019-06-28
  • Fix: Copy shortcode box having incorrect width.
  • Fix: Codemirror has been updated to latest version.
4.4 2019-04-28
  • New: Insert shortcode automatically adds "closing tag" if the shortcode has enclosed content parameter.
  • Fix: Codemirror has been updated to latest version.
4.3 2019-01-24
  • New: Edit shortcode name after creating.
  • New: Post modified date parameter added.
  • Fix: Date parameters now display in site language.
4.2 2018-12-02
  • Fix: Some plugins fail to fire onload JS event since it was overwritten by shortcoder.
  • Fix: Javascript in insert shortcode popup not working in IE 11.
  • Fix: Missing parenthesis while calling is_year.
  • Fix: Widgets page not loading insert shortcode popup.
  • Fix: Removed settings emoji icon from plugin actions list.
  • Fix: Load latest version 5.42.0 of codemirror.
  • Fix: Updated minimum required WordPress version.
4.1.9 2018-11-17
  • Fix: Minor UI refinements for better experience.
  • Fix: Import error where some exported JSON files have 0 as EOF.
4.1.8 2018-10-14
  • New: Insert custom fields in shortcode content.
  • Fix: Removed comments in shortcode output
4.1.7 2018-05-19
  • New: Categorize, search and filter shortcodes using "tags".
  • New: Last used shortcode editor will be saved along with shortcode.
  • New: Enclosed shortcode content can now be used as shortcode parameter.
  • New: Active line highlight has been enabled for code editor.
  • Fix: Codemirror has been updated to latest version.
  • Fix: Minor admin interface enhancements.
4.1.6 2018-02-25
  • New: Date variables can noe be added into shortcode content.
  • Fix: Error "trying to get property of non-object" is handled.
4.1.5 2018-01-21
  • New: Bloginfo variables can now be added into shortcode content.
4.1.4 2017-12-18
  • New: Codemirror powered syntax highlighted shortcode content code editor (beta).
4.1.3 2017-11-19
  • Fix: Shortcode names with not-allowed characters cannot be edited/deleted.
  • New: Shortcode imports made can now be fresh or overwritten.
  • New: Only users with manage_options capability will see "edit shortcode" option in insert window.
  • Fix: Import failure with UTF-8 characters.
  • Fix: Case sensitive search in admin pages.
  • Fix: Minor admin interface changes.
4.1.2 2017-10-15
  • New: Search box for shortcodes in admin page.
4.1.1 2017-08-28
  • Fix: HTTP 500 error because of syntax error in import module.
4.1 2017-08-23
  • New: Import/export feature for shortcodes.
  • Fix: Visual editor is now disabled by default.
  • Fix: Added instructions in admin page.
4.0.3 2017-07-25
  • New: Added feature to sort created shortcodes list.
  • Fix: HTML errors in admin page
4.0.2 2017-06-10
  • Fix: Sometimes get_current_screen() was called early in some setups.
4.0.1 2017-05-31
  • Fix: Servers with PHP version < 5.5 were facing HTTP 500 error because of misuse of PHP language construct in code.
4.0 2017-05-30
  • New: Plugin rewritten from scratch.
  • New: Brand new administration page
  • New: Shortcode vissibility settings, show/hide in desktop/mobile devices
  • New: Insert WordPress information into shortcode content.
  • Fix: Insert shortcode window is not loading.
  • Fix: Unable to delete the shortcodes
3.4.1 2015-12-30
  • Fixed Shortcoder not working in WordPress 4.4
  • Changed the shortcoder syntax from [sc:the_name] to [sc name="the_name"] permanently in effect of WordPress 4.4 changes.
3.4 2014-05-11
  • New feature: Embedded/Nested shortcodes is now supported.
  • New feature: Full fledged native WordPress editor for adding shortcode content with media buttons.
  • Bug fix: "duplicate percentage" in content on plugin reactivate.
  • Updated admin UI with fixed errors.
  • Updated "insert shortcode" interface is revised and some issues are fixed.
  • Updated with translatable texts in admin page.
  • Minor code revision and changes.
3.3 2013-01-16
  • Fixed bug in loops using foreach.
  • Fixed several PHP notices.
3.2 2012-09-28
  • Moved the shortcoder admin page to the "Settings" menu.
  • Some admin page issues are fixed.
3.1 2012-08-08
  • Changed the "Custom parameter" syntax from %param% to %%param%%
  • Code revision.
3.0.1 2012-04-26
  • Added license tag to the readme file.
3.0 2012-04-14
  • Plugin code rewritten from scratch.
  • Shortcode syntax is changed.
  • Supports any custom parameters.
  • Admin interface is redesigned and easy to use.
  • Added a tinyMCE button to the editing toolbar for inserting the shortcodes in the post.
  • Inbuilt shortcodes are removed.