WPorb
Shortcode

Shortcode

A shortcode is a piece of text which, when processed by the server and displayed in the browser, is replaced by something else.

They are usually used in the content for pages and posts. If you’re in the visual mode of the post editor, shortcodes are usually replaced with a preview of the content they will display on the site. If you’re using the
text mode of the post editor, you can see the shortcodes in the content.

One of the most commonly used shortcodes is the gallery shortcode, which usually looks something like this:

[ gallery id=”123″ columns=”3″ size=”large” ]

This shortcode will load the gallery with ID 123, and display the images in the “large” image size and three columns. You can create a gallery by clicking the “Add Media” button, clicking the “Gallery” tab on the left, selecting multiple images and clicking the “Create a New Gallery” button. This will insert a shortcode with the images and settings you selected to your content.

WordPress includes the following shortcodes out of the box:

  • audio
  • caption
  • embed
  • gallery
  • playlist
  • video

Additional shortcodes can be added by your active themes and plugins.

Add comment

Do you have a
WordPress problem?

Select what best describes your goals:

Cart

We use cookies to provide an awesome experience on our website. By continuing to use this site, you agree to our tasty cookies.
🍪 Accept Cookies
Privacy Policy