Back to Support Content and Media Blocks Shortcode Block

Shortcode Block

shortcode is a WordPress-specific code that can embed files or create objects that would normally require lots of complicated code. This guide will show you how to add a shortcode in the WordPress editor.

Add the Shortcode Block

You can add a shortcode to any page or post by first inserting the Shortcode block.

To add the Shortcode block, click on the + Block Inserter icon and search for “shortcode”. Click to add the block to a page, post, or template.

Or type /shortcode and press enter:

Shortcode Block Slash Command
Add a Shortcode block with a slash command.

For more information, visit our detailed instructions on adding blocks.

Write Your Shortcode

When you first add the Shortcode block to your post or page, it will appear with an empty box to type or paste a shortcode:

Shortcode block without code.

Type your shortcode into the box provided or paste it from the available shortcodes. Every shortcode is wrapped in two square brackets [ ].

In this example, the shortcode is added in the box to display posts by date.

Shortcode block with shortcode.
Shortcode to display posts by date

In edit mode, the shortcode will be shown. When you preview or view the page publicly, the intended content will show instead.

Available Shortcodes

Below you’ll find a list of all the shortcodes available on your WordPress.com site. In addition, many third-party plugins use shortcodes too – consult your plugin’s documentation to learn about that plugin’s shortcodes.

Video

Audio

Images and Documents

Miscellaneous

Useful shortcodes for adding a blog archive index, contact form, polls, and more.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!