Skip to main content

General shortcode instruction

Shortcodes should be formatted as follows:

[shortcodename parameter1=’value’ parameter2=’value’ parameter3=’value’]

 
For example:

[button href='http://www.google.com']Click here![/button]

In the above example, href is the parameter, http://www.google.com is the value.

Single/double quotes

You can use either single quotes or double quotes around the value, but whichever you use, they must match on each side of the value.

For example this would cause an error:
href=http://www.google.com

Spacing

There should be at least a single space between each parameter/value pair.

Correct:
[button href='http://www.google.com' target='_blank']Click here![/button]

Incorrect:
[button href='http://www.google.com'target='_blank']Click here![/button]

There are never any spaces in the parameter names, for example:

Correct:
carousel_autoplay=’yes’

Incorrect
carousel autoplay=’yes’