{"id":59105,"date":"2021-06-13T09:00:00","date_gmt":"2021-06-13T13:00:00","guid":{"rendered":"https:\/\/crazyeggblog.wpengine.com\/?p=59105"},"modified":"2026-01-14T08:34:17","modified_gmt":"2026-01-14T16:34:17","slug":"wordpress-shortcodes","status":"publish","type":"post","link":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/","title":{"rendered":"The Complete Guide to WordPress Shortcodes"},"content":{"rendered":"\n<p>When you hear the word \u201cshortcodes,\u201d you might not be sure what it means. Once you get through this guide, you\u2019ll know exactly what a shortcode is and how to use it to create amazing WordPress content. Let\u2019s dive in.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why WordPress Shortcodes Are So Important<\/h2>\n\n\n\n<p>WordPress shortcodes are important because they save you from two things: spending extra time creating elements for your website and learning to code.&nbsp;<\/p>\n\n\n\n<p>Shortcodes make it easy to add more involved functionalities to just about any part of your website, especially posts, widgets, and pages. Without shortcodes, you need to learn how to code a form or add Google maps into a post. You can either create your own shortcodes or download a shortcodes plugin to use them repeatedly.&nbsp;<\/p>\n\n\n\n<p>You can use shortcodes to add things to your website like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A specific form<\/li>\n\n\n\n<li>A call-to-action at the end of a post<\/li>\n\n\n\n<li>An image gallery<\/li>\n\n\n\n<li>A specific widget<\/li>\n\n\n\n<li>Social sharing buttons<\/li>\n<\/ul>\n\n\n\n<p>Below, we go through ways to improve your shortcode usage in both the short and long term.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Tips to Improve Your Site With WordPress Shortcodes Today<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Use a WordPress Plugin<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"535\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6-1024x535.png\" alt=\"\" class=\"wp-image-59106\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6-1024x535.png 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6-300x157.png 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6-768x401.png 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png 1267w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The easiest way to get started using shortcodes is to download the <a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Shortcodes Ultimate<\/a> plugin. Once you\u2019ve activated the plugin, you\u2019ll be able to access its extensive list of shortcodes which you can then customize and insert as a Gutenberg block.&nbsp;<\/p>\n\n\n\n<p>Shortcodes Ultimate, as you can probably guess by the name, enables you to use over 50 shortcodes to insert functions like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Image carousel<\/li>\n\n\n\n<li>Audio<\/li>\n\n\n\n<li>Google map<\/li>\n\n\n\n<li>Animation<\/li>\n\n\n\n<li>Menu<\/li>\n\n\n\n<li>Template<\/li>\n\n\n\n<li>Divider<\/li>\n\n\n\n<li>Pullquote<\/li>\n\n\n\n<li>QR Code<\/li>\n<\/ul>\n\n\n\n<p>Shortcodes Ultimate is one of the top shortcode plugins around, with more than 800,000 active installations and stellar five-star reviews. With Shortcodes Ultimate, you eliminate the need to learn how to code to create intricate functions that look professional to any visitor.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Understand How A Shortcode Works<\/h3>\n\n\n\n<p>The term&nbsp; itself is a combination of the words \u201cshortcut\u201d and \u201ccode.\u201d<\/p>\n\n\n\n<p>At its most basic, a shortcode is simply a piece of code within square brackets that you can copy and paste wherever you want a specific function to appear.&nbsp;<\/p>\n\n\n\n<p>WordPress introduced them back in 2008 for users to execute certain types of code within posts without having to actually code it themselves to create functions within their posts, pages, or widgets.&nbsp;<\/p>\n\n\n\n<p>While WordPress already comes with a few basic shortcodes built-in, you can download plugins that open your world to a wide array of different shortcodes which help you create feature-rich content. As mentioned previously, Shortcodes Ultimate is just one example of a shortcode plugin, and there are others you can try to see which one works best for you.&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use the WPForms Plugin<\/h3>\n\n\n\n<p>Want to know an easy way to create user forms for your website using shortcodes? Download the <a href=\"https:\/\/wpforms.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WPForms plugin<\/a>. The WordPress plugin is a personal favorite because of how easy it makes creating personalized forms for almost any need imaginable.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095508\/image2-1-1024x609.jpg\" alt=\"\" class=\"wp-image-59112\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095508\/image2-1-1024x609.jpg 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095508\/image2-1-300x178.jpg 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095508\/image2-1-768x456.jpg 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095508\/image2-1.jpg 1045w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The free WPForms gives you access to plenty of form features you can get by on if you only need the basics. However, if you want to take it a step further, the paid features get you access to more robust form creation tools for a broader range of needs.<\/p>\n\n\n\n<p>Once you create your form with WPForms, you\u2019ll be given a shortcode that you can insert just about anywhere. You\u2019re likely inserting them in posts or pages. We get into how to do that through the WordPress Gutenberg editor next.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Get Familiar With The Gutenberg Editor Shortcode Feature<\/h3>\n\n\n\n<p>Say you\u2019ve downloaded the Shortcodes Ultimate plugin. What next? Well, the next best thing to do is to get familiar with how to work with shortcodes in your WordPress Gutenberg editor.&nbsp;<\/p>\n\n\n\n<p>Once you open a post or page you want to modify, inserting the shortcode of your choice can be as easy as clicking the <strong>plus icon<\/strong>, which should appear as you type in your editor.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7-1024x452.jpg\" alt=\"\" class=\"wp-image-59107\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7-1024x452.jpg 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7-300x132.jpg 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7-768x339.jpg 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7-1536x677.jpg 1536w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095457\/image7.jpg 1617w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>From there, you can click on the <strong>shortcodes icon<\/strong> to insert the shortcode feature into your editor. If you don\u2019t see the shortcode icon right away, click on the <strong>Browse all<\/strong> button or search for \u201cshortcode\u201d in the search bar to find the shortcode block.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"368\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095500\/image5-1-1024x368.jpg\" alt=\"\" class=\"wp-image-59108\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095500\/image5-1-1024x368.jpg 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095500\/image5-1-300x108.jpg 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095500\/image5-1-768x276.jpg 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095500\/image5-1.jpg 1270w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Then you can click the brackets icon to access the complete list of shortcodes to find the one you need. There are a ton to choose from. We highly recommend you take the time to tinker with a few shortcodes to get a feel for what each of them can do.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"657\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095511\/image1-1-1024x657.jpg\" alt=\"\" class=\"wp-image-59113\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095511\/image1-1-1024x657.jpg 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095511\/image1-1-300x192.jpg 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095511\/image1-1-768x493.jpg 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095511\/image1-1.jpg 1180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As you can see, the list of shortcodes is pretty extensive. If you need to embed a YouTube video, for example, you\u2019d simply choose the YouTube shortcode.&nbsp;<\/p>\n\n\n\n<p>From there, you can customize a number of things about how you want your YouTube video to be displayed.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"550\" height=\"844\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095506\/image3.jpg\" alt=\"\" class=\"wp-image-59111\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095506\/image3.jpg 550w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095506\/image3-195x300.jpg 195w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p>Once you insert your desired URL, you can also choose the specific width and height of the video, whether you want the video to be responsive, and whether you want it to autoplay with sound. Once you hit the <strong>Insert Shortcode<\/strong> button, you\u2019ll be good to go. You can see how your video will look to users by using the <strong>Preview<\/strong> button.&nbsp;<\/p>\n\n\n\n<p>Keep in mind that using a plugin like Shortcodes Ultimate can give you a bit more customization options for shortcode features you could include with your Gutenberg editor anyway.&nbsp;<\/p>\n\n\n\n<p>While you could simply embed your YouTube URL with a Gutenberg block and call it a day, doing so through a shortcode plugin like Shortcodes Ultimate makes it easier for you to customize features like width and length, whether you want autoplay to be on or off, and make your videos responsive.&nbsp;<\/p>\n\n\n\n<p>As Gutenberg evolves and creates new features, it\u2019s continually adding more blocks that act like the shortcodes themselves.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Get Familiar With WordPress Default Shortcodes<\/h3>\n\n\n\n<p>If you don\u2019t want to add another plugin to your site, don\u2019t worry. WordPress comes with its own set of default shortcodes. It\u2019s a good idea to get familiar with each of them since they can be helpful if you only need to work with basic shortcodes.&nbsp;<\/p>\n\n\n\n<p>WordPress\u2019s built-in shortcodes are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/codex.wordpress.org\/Playlist_Shortcode\"><\/a>: With the playlist shortcode, you\u2019re able to display video or audio files.<\/li>\n\n\n\n<li><a href=\"https:\/\/codex.wordpress.org\/Video_Shortcode\"><\/a>: The video shortcode lets you embed video files.<\/li>\n\n\n\n<li><a href=\"https:\/\/codex.wordpress.org\/Audio_Shortcode\"><\/a>: The audio shortcode allows you to insert straightforward audio files to your posts with play and pause buttons included.<\/li>\n\n\n\n<li><a href=\"https:\/\/codex.wordpress.org\/Caption_Shortcode\"><\/a>: With the caption shortcode, you can add captions to things like images.<\/li>\n\n\n\n<li><a href=\"https:\/\/codex.wordpress.org\/Gallery_Shortcode\"><\/a>: The gallery shortcode lets you display a designated set of images within your site.&nbsp;<\/li>\n\n\n\n<li><a href=\"https:\/\/codex.wordpress.org\/Embed_Shortcode\"><\/a>: The embed shortcode lets you modify the attributes of your embeds.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>You can use the built-in shortcodes using the shortcode block in the editor and typing in your desired shortcode along with its specifications.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Long-Term Strategies for WordPress Shortcodes<\/h2>\n\n\n\n<p>So far, we\u2019ve revised a few short-term strategies you can use to get familiar with WordPress shortcodes. You can also use a few long-term strategies to make sure you get the most out of your shortcode usage. The following are a few worth trying out.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Learn How To Create Your Own Shortcodes<\/h3>\n\n\n\n<p>If you want to create your own shortcodes, you can take one of two routes: learn to do it yourself by editing your WordPress theme files or downloading the <a href=\"https:\/\/wordpress.org\/plugins\/shortcoder\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Shortcoder plugin<\/a> and taking the easy route.<\/p>\n\n\n\n<p>Editing your WordPress theme files is something we only advise you do with the utmost caution. If you\u2019re an amateur when it comes to editing or dealing with code, you\u2019ll have a bad time if you make changes incorrectly and something on your site breaks. Though it\u2019s worth pointing out that editing your theme files to create shortcodes is definitely doable if you have experience with PHP files.&nbsp;<\/p>\n\n\n\n<p>The choice is ultimately yours to make. We like to live easily, so we prefer to create our shortcodes using the Shortcoder plugin.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095503\/image4-1-1024x550.png\" alt=\"\" class=\"wp-image-59109\" srcset=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095503\/image4-1-1024x550.png 1024w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095503\/image4-1-300x161.png 300w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095503\/image4-1-768x413.png 768w, https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095503\/image4-1.png 1232w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you download and activate the plugin, it\u2019s simply a matter of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Naming your new shortcode with something you can easily identify<\/li>\n\n\n\n<li>Pasting the HTML\/JavaScript\/CSS of the shortcode you want to create<\/li>\n\n\n\n<li>Saving your new creation<\/li>\n\n\n\n<li>Copying and pasting the shortcode Shortcoder provides you wherever you want.<\/li>\n<\/ul>\n\n\n\n<p>Shortcoder is extremely easy to use, and we highly recommend it if you can\u2019t find the shortcode you need. To start using Shortcoder with your website, <a href=\"https:\/\/wordpress.org\/plugins\/shortcoder\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">download it free here.&nbsp;<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Keep Your Shortcode Plugins Updated<\/h3>\n\n\n\n<p>Though plugins make your life easier as you grow your WordPress site, they aren\u2019t always guaranteed to stay updated by their creators. It\u2019s good practice to check on your plugins now and then to make sure they\u2019re updated to be compatible with the latest acceptable version of WordPress.&nbsp;<\/p>\n\n\n\n<p>If your plugin happens not to be updated over a long time, you can always try uploading another one, as there are a few to choose from. Keep in mind this might mean you\u2019ll have to revise every post, page, or widget you\u2019ve used a shortcode in.&nbsp;<\/p>\n\n\n\n<p>The more popular plugins almost always get regular updates. So while this can be a minor issue, it\u2019s still a possibility.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Mind Your Shortcode Usage<\/h3>\n\n\n\n<p>As you use shortcodes, keep in mind the more you use shortcodes throughout your posts and pages, the more you\u2019ll have to manually keep track of and edit if you ever decide to delete your shortcode plugin.<\/p>\n\n\n\n<p>The same can be true if you\u2019re using a website theme that comes with proprietary shortcodes. The day you decide to switch themes, you\u2019ll have to go back and edit all of your dead shortcodes.&nbsp;<\/p>\n\n\n\n<p>Our advice is that while shortcodes are an excellent and ultra-useful feature, use them sparingly. If there\u2019s a shortcode you seem to use over and over again, it might be worth the time and investment to reach out to a developer so they can permanently build that feature into your site. Or potentially look for a plugin or theme that has the functionality built into it.<\/p>\n\n\n\n<p>This way, you have the peace of mind of knowing that if you were to delete or change your shortcode plugin, you\u2019d still have that recurring feature active throughout your site.&nbsp;<\/p>\n\n\n\n<p>As with keeping your shortcode plugins updated, this is more or less a minor concern. But it\u2019s one worth keeping in mind as you modify and make changes to your WordPress site. Keeping a spreadsheet of what posts and pages have what shortcodes can be a good way to stay a step ahead if you think you will make changes in the future.&nbsp;<\/p>\n\n\n\n<p>This becomes more important the more content you publish as your site grows. Chances are, you\u2019ll have to go back at some point to make changes.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Next Steps<\/h2>\n\n\n\n<p>If you\u2019ve made it this far down, we\u2019ve talked your ear off on all things shortcodes. You know how to use them, the best plugins to add to your site for an awesome list of ready-to-use shortcodes you can customize, and you can create your own shortcodes if you want to.&nbsp;<\/p>\n\n\n\n<p>Around here, we like to keep learning, especially when it comes to all things WordPress. If you\u2019re looking for an up-to-date WordPress review, we wrote one <a href=\"https:\/\/www.crazyegg.com\/blog\/wordpress-review\/\">you can read here.<\/a> <\/p>\n\n\n\n<p>Before you go, if you\u2019re wondering what your users actually do once they land on your site, we\u2019ve gone out of our way to create a list of <a href=\"https:\/\/www.crazyegg.com\/blog\/wordpress-heatmaps\/\">the 10 best heatmap plugins<\/a> for WordPress you might want to bookmark for later reference.&nbsp;&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you hear the word \u201cshortcodes,\u201d you might not be sure what it means. Once you get through this guide, you\u2019ll know exactly what a&#8230;<\/p>\n","protected":false},"author":279,"featured_media":59106,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","_lmt_disableupdate":"","_lmt_disable":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[876],"tags":[],"class_list":["post-59105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Complete Guide to WordPress Shortcodes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Complete Guide to WordPress Shortcodes\" \/>\n<meta property=\"og:description\" content=\"When you hear the word \u201cshortcodes,\u201d you might not be sure what it means. Once you get through this guide, you\u2019ll know exactly what a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/\" \/>\n<meta property=\"og:site_name\" content=\"The Daily Egg\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/crazyegganalytics\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-13T13:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-14T16:34:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1267\" \/>\n\t<meta property=\"og:image:height\" content=\"662\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hiten Shah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hnshah\" \/>\n<meta name=\"twitter:site\" content=\"@CrazyEgg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hiten Shah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/\"},\"author\":{\"name\":\"Hiten Shah\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#\\\/schema\\\/person\\\/c1969663812802521ba57624887e9df6\"},\"headline\":\"The Complete Guide to WordPress Shortcodes\",\"datePublished\":\"2021-06-13T13:00:00+00:00\",\"dateModified\":\"2026-01-14T16:34:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/\"},\"wordCount\":1968,\"publisher\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/07095454\\\/image6.png\",\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/\",\"url\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/\",\"name\":\"The Complete Guide to WordPress Shortcodes\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/07095454\\\/image6.png\",\"datePublished\":\"2021-06-13T13:00:00+00:00\",\"dateModified\":\"2026-01-14T16:34:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/07095454\\\/image6.png\",\"contentUrl\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/07095454\\\/image6.png\",\"width\":1267,\"height\":662},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/wordpress-shortcodes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website\",\"item\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/category\\\/website\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The Complete Guide to WordPress Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/\",\"name\":\"The Daily Egg\",\"description\":\"Conversion Rate Optimization Made Easy\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#organization\",\"name\":\"Crazy Egg\",\"url\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/Crazy-Egg-logo-small.png\",\"contentUrl\":\"https:\\\/\\\/ceblog.s3.amazonaws.com\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/Crazy-Egg-logo-small.png\",\"width\":191,\"height\":100,\"caption\":\"Crazy Egg\"},\"image\":{\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/crazyegganalytics\\\/\",\"https:\\\/\\\/x.com\\\/CrazyEgg\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/crazy-egg\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCJNe_xmPi07YezxaqfoRVqg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/#\\\/schema\\\/person\\\/c1969663812802521ba57624887e9df6\",\"name\":\"Hiten Shah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g\",\"caption\":\"Hiten Shah\"},\"description\":\"As co-founder and CEO, I have started multiple software-as-a-service (SaaS) companies since 2003 including Crazy Egg, KISSmetrics, and Nira. Sold my last startup (Nira) to Dropbox in 2024 and got my first ever job with a boss. I most recently worked on Product &amp; Growth for the AI Products @ Dropbox. I\u2019m now the CEO of Crazy Egg. Connect with me on LinkedIn or X\\\/Twitter.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/hnshah\\\/\",\"https:\\\/\\\/x.com\\\/hnshah\"],\"url\":\"https:\\\/\\\/www.crazyegg.com\\\/blog\\\/author\\\/hiten\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Complete Guide to WordPress Shortcodes","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"The Complete Guide to WordPress Shortcodes","og_description":"When you hear the word \u201cshortcodes,\u201d you might not be sure what it means. Once you get through this guide, you\u2019ll know exactly what a...","og_url":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/","og_site_name":"The Daily Egg","article_publisher":"https:\/\/www.facebook.com\/crazyegganalytics\/","article_published_time":"2021-06-13T13:00:00+00:00","article_modified_time":"2026-01-14T16:34:17+00:00","og_image":[{"width":1267,"height":662,"url":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png","type":"image\/png"}],"author":"Hiten Shah","twitter_card":"summary_large_image","twitter_creator":"@hnshah","twitter_site":"@CrazyEgg","twitter_misc":{"Written by":"Hiten Shah","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#article","isPartOf":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/"},"author":{"name":"Hiten Shah","@id":"https:\/\/www.crazyegg.com\/blog\/#\/schema\/person\/c1969663812802521ba57624887e9df6"},"headline":"The Complete Guide to WordPress Shortcodes","datePublished":"2021-06-13T13:00:00+00:00","dateModified":"2026-01-14T16:34:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/"},"wordCount":1968,"publisher":{"@id":"https:\/\/www.crazyegg.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#primaryimage"},"thumbnailUrl":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png","articleSection":["Website"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/","url":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/","name":"The Complete Guide to WordPress Shortcodes","isPartOf":{"@id":"https:\/\/www.crazyegg.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#primaryimage"},"image":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#primaryimage"},"thumbnailUrl":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png","datePublished":"2021-06-13T13:00:00+00:00","dateModified":"2026-01-14T16:34:17+00:00","breadcrumb":{"@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#primaryimage","url":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png","contentUrl":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2021\/06\/07095454\/image6.png","width":1267,"height":662},{"@type":"BreadcrumbList","@id":"https:\/\/www.crazyegg.com\/blog\/wordpress-shortcodes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.crazyegg.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website","item":"https:\/\/www.crazyegg.com\/blog\/category\/website\/"},{"@type":"ListItem","position":3,"name":"The Complete Guide to WordPress Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/www.crazyegg.com\/blog\/#website","url":"https:\/\/www.crazyegg.com\/blog\/","name":"The Daily Egg","description":"Conversion Rate Optimization Made Easy","publisher":{"@id":"https:\/\/www.crazyegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.crazyegg.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.crazyegg.com\/blog\/#organization","name":"Crazy Egg","url":"https:\/\/www.crazyegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.crazyegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2015\/06\/Crazy-Egg-logo-small.png","contentUrl":"https:\/\/ceblog.s3.amazonaws.com\/wp-content\/uploads\/2015\/06\/Crazy-Egg-logo-small.png","width":191,"height":100,"caption":"Crazy Egg"},"image":{"@id":"https:\/\/www.crazyegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/crazyegganalytics\/","https:\/\/x.com\/CrazyEgg","https:\/\/www.linkedin.com\/company\/crazy-egg\/","https:\/\/www.youtube.com\/channel\/UCJNe_xmPi07YezxaqfoRVqg"]},{"@type":"Person","@id":"https:\/\/www.crazyegg.com\/blog\/#\/schema\/person\/c1969663812802521ba57624887e9df6","name":"Hiten Shah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/715288b6d07eff81ecae058546cd68eaf7d1931c1b0a5472ba035eae1198262c?s=96&d=mm&r=g","caption":"Hiten Shah"},"description":"As co-founder and CEO, I have started multiple software-as-a-service (SaaS) companies since 2003 including Crazy Egg, KISSmetrics, and Nira. Sold my last startup (Nira) to Dropbox in 2024 and got my first ever job with a boss. I most recently worked on Product &amp; Growth for the AI Products @ Dropbox. I\u2019m now the CEO of Crazy Egg. Connect with me on LinkedIn or X\/Twitter.","sameAs":["https:\/\/www.linkedin.com\/in\/hnshah\/","https:\/\/x.com\/hnshah"],"url":"https:\/\/www.crazyegg.com\/blog\/author\/hiten\/"}]}},"modified_by":"Montana Thomas","_links":{"self":[{"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/posts\/59105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/comments?post=59105"}],"version-history":[{"count":0,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/posts\/59105\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/media\/59106"}],"wp:attachment":[{"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/media?parent=59105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/categories?post=59105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crazyegg.com\/blog\/wp-json\/wp\/v2\/tags?post=59105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}