WordPress.org

Plugin Directory

Shortcoder

Create custom "Shortcodes" with HTML, Javascript snippets stored in it and use that shortcode within posts and pages. Check the demo video.

Shortcoder is a plugin which allows to create a custom shortcode and store HTML, Javascript and other snippets in it. So if that shortcode is used in any post or pages, then the code stored in the shortcode get exceuted in that place.

Features

  • Create "custom shortcodes" easily and use them within WordPress posts
  • Use any name for the created shortcode (ex: [sc name="youtube"])
  • Use any kind of HTML as Shortcode content.
  • Parameters can also added to HTML (ex: <strong>%%mytext%%</strong> [sc name="testing" mytext="hello"] )
  • Visual editor for adding shortcode contents.
  • Global tinyMCE button available in the editing toolbar for inserting created shortcodes.
  • Globally disable the shortcode when not needed.
  • Can disable the shortcode, showing it to admins.

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 appears in the post.
  • Using this idea, shortcodes can be created for frequently used snippets.
  • You can also add parameters (like %%id%%) inside the snippets, and vary it like [sc name="youtube" id="GrlRADfvjII"]
  • This plugin will be hugely useful to all !!!

DONATE: If you like this plugin, you can show your support by donating some amount.

Fix for WordPress 4.4 issue

Starting Shortcoder 3.4.1 the syntax for shortcoder is [sc name="your shortcode"]. This is in effect to the shortcode API related changes made in WordPress core which made old the syntax unrecognizable. Version 3.4.1 automatically recognizes the old syntax only in posts where the shortcode is inserted directly and not in widgets or in drag and drop themes modules. Those areas need to be manually replaced from old [sc:my_shortcode] to the new [sc name="my_shortcode"] syntax. Please use the below resources for any queries.

Resources

Requires: 3.3 or higher
Compatible up to: 4.4.4
Last Updated: 8 months ago
Active Installs: 20,000+

Ratings

4.6 out of 5 stars

Support

0 of 4 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1
100,2,2 86,7,6
100,7,7
100,1,1
100,1,1
100,2,2
100,2,2
100,1,1
100,1,1 100,2,2
100,1,1 100,2,2
100,1,1 100,1,1 100,2,2
100,1,1 100,3,3
100,1,1 100,4,4
88,8,7
100,1,1
100,1,1 90,10,9
91,11,10
100,1,1 100,2,2
100,5,5
100,4,4
75,4,3
100,1,1 100,1,1
100,1,1 50,2,1
100,2,2
100,1,1
50,2,1
100,1,1
50,2,1
0,1,0
67,3,2
0,15,0 100,2,2
100,1,1
100,1,1
100,3,3
100,1,1
100,1,1