Shortcodes allow you to embed videos from YouTube, tweets from Twitter, and other media across the web directly into your WordPress-powered site.
To enable this feature, visit Jetpack → Settings → Writing in your site’s dashboard. Scroll down to the Composing section and toggle on the Compose using shortcodes to embed media from popular sites option.
This feature also allows you to embed elements by pasting URLs on a line by itself in your visual editor. These are called Inline Embeds.
Embedding Facebook and Instagram Posts
Facebook and Instagram no longer support their oEmbed API. However, we’ve partnered with Meta to ensure this content continues to display as expected. All you need to do is connect your site to Jetpack and paste the link to the Facebook or Instagram content in the post or page editor.
What is a shortcode?
A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. A shortcode is like a shortcut.
Available shortcodes
Jetpack now uses the shortcode parameters in WordPress Core.
Video
[archiveorg]
embeds a video from The Internet Archive. » Full instructions[brightcove]
embeds a Brightcove video. » Full instructions[dailymotion]
embeds a Dailymotion video. » Full instructions[flickr]
embeds a Flickr video. » Full instructions[kickstarter]
embeds a Kickstarter video. » Full instructions[ted]
embeds a TED talk. » Full instructions[twitchtv]
embeds a Twitch.tv video or live stream. Full instructions.[vimeo]
embeds a Vimeo video. » Full instructions[wpvideo]
embeds a VideoPress video. » Full instructions[youtube]
embeds a YouTube video. » Full instructions
Audio
[bandcamp]
embeds audio from Bandcamp. » Full instructions[mixcloud]
embeds audio from Mixcloud. » Full instructions[soundcloud]
embeds audio from SoundCloud. » Full instructions[spotify]
embeds Spotify playlists. » Full instructions
Images and Documents
[archiveorg]
embed Archive.org documents and books. » Full instructions[gallery type="slideshow"]
allows you to create a slideshow by using the built-in WordPress galleries. » Full instructions[googleapps]
embeds Google Documents. » Full instructions[instagram]
embeds an Instagram photo. » Full instructions[kickstarter]
embeds Kickstarter projects. » Full instructions[presentation]
allows you to display a slide presentation on your site. » Full instructions[scribd]
embeds a document/file from Scribd. » Full instructions[slideshare]
embeds a slideshow from Slideshare.net. » Full instructions[vr]
embeds VR content. » Full instructions
Miscellaneous
Shortcodes for adding a blog archive index, contact form, polls, WordAds, and more.
[archives]
displays an archive index of your blog posts. » Full instructions[carto]
embeds Carto maps. » Full instructions[codepen]
embeds code snippets from CodePen. » Full instructions[facebook]
embeds Facebook posts. » Full instructions[gist]
embeds code snippets from Gist. » Full instructions[googlemaps]
embeds Google Maps. » Full instructions[gravatar]
embeds Gravatar Profiles. » Full instructions[houzz]
embeds designs from Houzz. » Full instructions[mailchimp_subscriber_popup]
allows you to create MailChimp Subscriber Popup Forms. The shortcode uses the following format:[mailchimp_subscriber_popup baseUrl="mc.us11.list-manage.com" uuid="your_uuid" lid="your_lid"]
[medium]
embeds Medium posts.[pinterest]
embeds Pinterest pins, boards, and user profiles. » Full instructions[poll]
embeds a Crowdsignal poll. » Full instructions[quiz]
embeds a multiple choice quiz. » Full instructions[recipe]
embeds a recipe with consistent formatting, basic metadata, and an option to print. » Full instructions[sitemap]
displays your site’s sitemap. » Full instructions[tweet]
embeds a specific tweet » Full instructions[untappd-menu]
embeds beer menus from the location of your choice. » Full instructions[wordads]
embeds a WordAds advertisement (the Ads feature must be enabled) » Full instructions[wufoo]
embeds Wufoo forms. » Full instructions
Feature-Dependent Shortcode
This shortcode only works when the corresponding feature is enabled.
[contact-form]
shows a Jetpack contact form. Note – since Jetpack’s contact form is enabled by default and available in the Classic Editor and as a block, a shortcode shouldn’t be needed. If you are using a different editor and require only shortcodes, then this can be used. » Full instructions[jetpack_subscription_form]
displays a subscription form anywhere in your site. Works with the Subscription Feature. » Full instructions[jetpack_top_posts_widget]
displays the Top Posts & Pages Widget, if you’ve enabled the Extra Sidebar Widgets Feature. » Full instructions
Inline Embeds
PDF: Paste a link to PDF in your Media Library to embed in a post or page. » Full instructions
Privacy Information
Shortcode Embeds are deactivated by default. You can activate them at any moment from your WP Admin. To do so:
- Go to Jetpack → Settings.
- Click the Writing tab.
- Scroll down to the Composing section and toggle on the Compose using shortcodes to embed media from popular sites option.
Data Used | |
---|---|
Site Owners / Users
We use any information required for the actual configuration of any shortcodes; see the links in the above section accompanying each shortcode for those specific details. Note that, if you add a shortcode to one of your posts, anybody with access to edit that post will have access to those shortcode details. The following WordPress options are also used (these are synced): | Site Visitors
See the Jetpack Stats privacy documentation for some shortcodes that record impressions (VideoPress and Slideshow).Note that, due to the nature of shortcodes (i.e. third-party content embeds), it is possible that third-party services may make use of certain pieces of data. |
Activity Tracked | |
Site Owners / Users
We track when, and by which user, the feature is activated and deactivated. | Site Visitors
VideoPress: video plays; Slideshow: image views.Note that, due to the nature of shortcodes (i.e. third-party content embeds), it is possible that third-party services may track activity in some instances. |
Data Synced (Read More) | |
Site Owners / Users
We sync an option that identifies whether or not the feature is activated. We also sync which specific shortcodes are currently used/active on your site. | Site Visitors
None. |