{"id":325,"date":"2022-09-20T10:06:00","date_gmt":"2022-09-20T07:06:00","guid":{"rendered":"https:\/\/elementor.com\/help\/?p=325"},"modified":"2024-03-26T17:42:38","modified_gmt":"2024-03-26T15:42:38","slug":"dynamic-shortcode-pro","status":"publish","type":"post","link":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/","title":{"rendered":"Add dynamic shortcodes"},"content":{"rendered":"\n<p>The <em>Dynamic Shortcode<\/em> feature provides the ability to use a shortcode, dynamically, for anything that Elementor doesn&#8217;t already provide a dynamic tag for. While the possibilities are limitless, here are a few examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using any custom field plugin shortcodes that aren&#8217;t natively supported by Elementor<\/li>\n\n\n\n<li>Inserting an Elementor template via its shortcode<\/li>\n\n\n\n<li>Using an external plugin&#8217;s shortcode<\/li>\n\n\n\n<li>Use self-coded shortcodes, for example, conditionally displaying different messages on the page based on a custom shortcode created by a developer<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If a widget&#8217;s field has a dynamic option, click on the Dynamic icon <img decoding=\"async\" width=\"20\" height=\"20\" class=\"wp-image-1402\" style=\"width: 20px\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\" alt=\"\">.<br><img fetchpriority=\"high\" decoding=\"async\" width=\"280\" height=\"386\" class=\"wp-image-48269\" style=\"width: 280px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2022\/09\/Dynamic-icons.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2022\/09\/Dynamic-icons.png 305w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2022\/09\/Dynamic-icons-218x300.png 218w\" sizes=\"(max-width: 280px) 100vw, 280px\" \/><\/li>\n\n\n\n<li>Select <strong>Shortcode<\/strong> from the <em>Site<\/em> selections. This will add <em>Shortcode<\/em> in the dynamic field.<\/li>\n\n\n\n<li>Enter your shortcode into the<em> Settings &gt; Shortcode<\/em> field.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"367\" height=\"353\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings.jpg\" alt=\"\" class=\"wp-image-1800\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings.jpg 367w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings-300x289.jpg 300w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"312\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings1.jpg\" alt=\"\" class=\"wp-image-1801\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings1.jpg 335w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/shortcode-settings1-300x279.jpg 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/figure>\n\n\n\n<p class=\"callout-red\">Important: By default, for security reasons, the generated HTML while using shortcodes is being escaped. If you wish to disable the escaping add the following line to your theme\u2019s function.php file:<\/p>\n\n\n\n<p><code> add_filter( 'elementor_pro\/dynamic_tags\/shortcode\/should_escape', '__return_false' ); <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use a dynamic shortcode for anything without a dynamic tag<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_elementor_kustomer_id":["65ba3537ff2ba2e79da85d80"],"footnotes":""},"categories":[1440],"tags":[],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-advanced-functionality"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add dynamic shortcodes | Elementor<\/title>\n<meta name=\"description\" content=\"Learn everything about Add dynamic shortcodes in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add dynamic shortcodes | Elementor\" \/>\n<meta property=\"og:description\" content=\"Learn everything about Add dynamic shortcodes in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\" \/>\n<meta property=\"og:site_name\" content=\"Help\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-20T07:06:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T15:42:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"20\" \/>\n\t<meta property=\"og:image:height\" content=\"20\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alan Kaler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alan Kaler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\"},\"author\":{\"name\":\"Alan Kaler\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430\"},\"headline\":\"Add dynamic shortcodes\",\"datePublished\":\"2022-09-20T07:06:00+00:00\",\"dateModified\":\"2024-03-26T15:42:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\"},\"wordCount\":154,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\",\"articleSection\":[\"Advanced functionality\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\",\"url\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\",\"name\":\"Add dynamic shortcodes | Elementor\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\",\"datePublished\":\"2022-09-20T07:06:00+00:00\",\"dateModified\":\"2024-03-26T15:42:38+00:00\",\"description\":\"Learn everything about Add dynamic shortcodes in this article from Elementor's Knowledge Base. Get Elementor tips & more.\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage\",\"url\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\",\"contentUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png\",\"width\":20,\"height\":20,\"caption\":\"dynamic-icon\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Help Center\",\"item\":\"https:\/\/elementor.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elementor Editor\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Widgets\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Advanced functionality\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/advanced-functionality\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Add dynamic shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/help\/#website\",\"url\":\"https:\/\/elementor.com\/help\/\",\"name\":\"Elementor\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/elementor.com\/help\/#organization\",\"name\":\"Elementor\",\"url\":\"https:\/\/elementor.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"contentUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"width\":225,\"height\":225,\"caption\":\"Elementor\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430\",\"name\":\"Alan Kaler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g\",\"caption\":\"Alan Kaler\"},\"description\":\"Alan Kaler is an expert Elementorist at Elementor and a WordPress Magician who thinks that the three most beautiful words in our language are: I told you\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add dynamic shortcodes | Elementor","description":"Learn everything about Add dynamic shortcodes in this article from Elementor's Knowledge Base. Get Elementor tips & more.","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:\/\/elementor.com\/help\/dynamic-shortcode-pro\/","og_locale":"en_US","og_type":"article","og_title":"Add dynamic shortcodes | Elementor","og_description":"Learn everything about Add dynamic shortcodes in this article from Elementor's Knowledge Base. Get Elementor tips & more.","og_url":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/","og_site_name":"Help","article_published_time":"2022-09-20T07:06:00+00:00","article_modified_time":"2024-03-26T15:42:38+00:00","og_image":[{"width":20,"height":20,"url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png","type":"image\/png"}],"author":"Alan Kaler","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alan Kaler","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/"},"author":{"name":"Alan Kaler","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430"},"headline":"Add dynamic shortcodes","datePublished":"2022-09-20T07:06:00+00:00","dateModified":"2024-03-26T15:42:38+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/"},"wordCount":154,"commentCount":0,"publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"image":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png","articleSection":["Advanced functionality"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/","url":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/","name":"Add dynamic shortcodes | Elementor","isPartOf":{"@id":"https:\/\/elementor.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png","datePublished":"2022-09-20T07:06:00+00:00","dateModified":"2024-03-26T15:42:38+00:00","description":"Learn everything about Add dynamic shortcodes in this article from Elementor's Knowledge Base. Get Elementor tips & more.","breadcrumb":{"@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#primaryimage","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2020\/04\/dynamic-icon.png","width":20,"height":20,"caption":"dynamic-icon"},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/help\/dynamic-shortcode-pro\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Help Center","item":"https:\/\/elementor.com\/help\/"},{"@type":"ListItem","position":2,"name":"Elementor Editor","item":"https:\/\/elementor.com\/help\/elementor-editor\/"},{"@type":"ListItem","position":3,"name":"Widgets","item":"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/"},{"@type":"ListItem","position":4,"name":"Advanced functionality","item":"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/advanced-functionality\/"},{"@type":"ListItem","position":5,"name":"Add dynamic shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/help\/#website","url":"https:\/\/elementor.com\/help\/","name":"Elementor","description":"","publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/help\/#organization","name":"Elementor","url":"https:\/\/elementor.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","width":225,"height":225,"caption":"Elementor"},"image":{"@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430","name":"Alan Kaler","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g","caption":"Alan Kaler"},"description":"Alan Kaler is an expert Elementorist at Elementor and a WordPress Magician who thinks that the three most beautiful words in our language are: I told you"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":3,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":48270,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/325\/revisions\/48270"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}