- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
shortcode
April 15, 2015
Shortcode is a powerful content building tool for managing content. It is a special tag which consists of different attributes and parameters.
Shortcodes are flexible because they allow us to add/remove parameters in order to make them more functional.
They were introduced to allow people to execute code inside posts and pages without writing any code directly.
Shortcodes simplify the addition of features into website and include numerous options such as displaying posts, images, icons, tags, etc.
Shortcodes are used in WordPress and Drupal based websites.
All available shortcodes are conditionally divided into these groups:
-
Dynamic – used for content output (posts, custom post types, tags, etc.);
-
Grid Columns – various columns for grid forming;
-
Elements – additional elements for content forming;
-
Other – additional elements for advanced/complex content forming:

A shortcode is enclosed with square brackets and can be inserted into a page or post. Here is an example of a simple standard shortcode for WordPress:
[alert_box style="message" close="yes" custom_class="message"]Hello, World![/alert_box]

Shortcodes are added using a shortcode button in a Visual editing mode:

Here is an example of a simple standard shortcode for Drupal:
[dropcap]Text here[/dropcap]

It replaces the given text formatted like a dropcap.