Post shortcodes are accessible via the GUI Shortcode Generator. Simply click the Shortcodes drop-down in the editor
(make sure you’re on Visual editor) and select the relevant shortcode to be guided.
If you wish to manually use the shortcodes (advanced users only), the guide below offers some insight into each.
DropcapA To use the square version:
AccordionsTip load=”show” defines to show this accordion (expanded) by default.
load="show" defines to show this accordion (expanded) by default.
- Item 1
- Item 2
Columns are a border-line layout shortcodes. While they’re also often used in posts, they’re covered below.
Layout & Block Shortcodes — Advanced!
The column shortcode is a special shortcode. Sample shortcode:
shortcode has the following variables/options:
- 5 columns are supported. Hence all combinations are supported up to 5 such as 1/2, 2/3, 1/4, 3/5 etc. Alternatively, English version of the numbers
is also supported, such as half, one-third, three-fourth, four-fifth etc. Example: size=”one-fourth”.
- left, center, and right are valid alignment values. left is used by default. Example: text_align=”right”.
- Any of the custom CSS classes can be defined for the column using this attribute.
- value: space, line, half-space, half-line. The separator can be either be a large empty space, line-based, small empty space, or line-based but with lesser space.
WordPress core supports embedding much of media out of the box.
Galleries were already covered in Gallery Post Format section. For advanced usage, refer to
section in WordPress docs.
Embedding Videos & Audio
To show aor Vimeo for example, you would just copy the link and paste it into your post content.
section of WordPress’s docs to find the supported sites.
Should that fail, you can use the embed shortcode as
Self-hosted Audio & Video
Starting WordPress 3.6, you can self-host audio or video easily. However, not many webhosts will allow you to upload files of large size.
- While adding a post, click Add Media. Go to Insert Media > Upload Files.
- Select and upload your audio or video file.
- Make sure Embed Media in “Embed or Link” option.
- Click Insert into post.
For advanced usage, check out the
sections of the WordPress docs.