An easy to use mechanism for creating and using custom shortcodes.
After installing Simple Shortcodes go to the Settings >> Configure Simple Shortcodes page and create one or more shortcodes.
As an example enter myshortcode in the Shortcode Name text box, enter "This is boilerplate created using myshortcode." in the Shortcode Value text box (with or without the quotes), and click Save. Your new shortcode will be listed below the text boxes.
To edit an existing shortcode, click on edit, and the shortcode name and value will be placed in the textboxes ready to be edited. When done click on save.
Beware when saving shortcodes, no check is made to see if there is an exising shortcode with the same name.
To delete an existing shortcode, click on delete. Beware when deleting shortcodes as it occurs immediately without confirmation, and there is no undelete facility.
To use a shortcode in a post or page on your blog just enter the shortcode in [ ], such as [myshortcode].
There are three options which can be changed to alter the behaviour of the Configure Simple Shortcodes page. These can be altered using the form at the foot of the Configure Simple Shortcodes page.
The options are:
Before saving, all of the options are checked to ensure that they are valid. Any options which are invalid are silently changed to their default values.
As alternatives to yes or no, y t true 1 (or any number other than 0) and n f false 0 are accepted as alternatives to yes and no respectively. Any combination of case is also accepted, such as TrUe or fAlSe. All of the alternatives are translated to yes or no.
Support for Simple Shortcodes is available from http://michael-baker.com/simple_shortcodes/support/
Version 0.2, Released 3 January 2009
Following feedback and my initial experience of using Simple Shortcodes I've made the following changes:
For many years I've maintained the website of my friend, the world renowed marine artist, Gordon Frickers (http://frickers.co.uk/) . Initially I used ppwizard (http://dennisbareis.com/ppwizard.htm) and wenost (http://wenost.sourceforge.net/) to build the site. Among other things I used ppwizard to set up macros for commonly used text like phone numbers and Gordon's address.
When I set up a WordPress Blog for Gordon (http://frickers.co.uk/blog/) , I wanted to be able use a similar mechanism for such commonly used text like phone and address.
Simple Shortcodes was originally developed between Christmas and New Year in 2008.
Simple Shortcodes comes with a pre-installed shortcode - [mb_ack].
If you find Simple Shortcodes to be useful I would appreciate it if you could show your support by including the shortcode [mb_ack] on one or more of your posts or pages.
Requires: 2.6 or higher
Compatible up to: 2.7
Last Updated: 8 years ago
Active Installs: 400+
Got something to say? Need help?