{"id":257,"date":"2026-09-26T02:43:45","date_gmt":"2026-09-26T02:43:45","guid":{"rendered":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/"},"modified":"2026-09-26T02:43:45","modified_gmt":"2026-09-26T02:43:45","slug":"dennis-snell-enter-the-mess-shortcodes","status":"publish","type":"post","link":"https:\/\/primeiramae.com.br\/en\/dennis-snell-enter-the-mess-shortcodes\/","title":{"rendered":"Dennis Snell: Enter the mess: Shortcodes"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Tonight I started working on some Shortcode processing in WordPress. This is an historically nasty problem because the Shortcode syntax and parsing is wildly dynamic.<\/p>\n<ul class=\"wp-block-list\">\n<li>Shortcode syntax is only technically recognized for shortcodes registered at the time of parsing. This means that there is not a general Shortcode grammar.<\/li>\n<li>Whether a shortcode has \u201ccontent,\u201d meaning whether it expects a closing tag, depends on whether the closing tag <em>exists<\/em> in the post.<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">This is a problem that has plagued me for years and I have generally just ignored. There\u2019s an open Core issue in Trac for changing some shortcode parsing (<a href=\"https:\/\/core.trac.wordpress.org\/ticket\/50683\">#50683<\/a>), and I have thought a lot about it.<\/p>\n<p class=\"wp-block-paragraph\">But I think there is more to explore, and more to gain. Maybe this goes nowhere, but keep your eyes open for it.<\/p>","protected":false},"excerpt":{"rendered":"<p>Tonight I started working on some Shortcode processing in WordPress. This is an historically nasty problem because the Shortcode syntax and parsing is wildly dynamic. Shortcode syntax is only technically recognized for shortcodes registered at the time of parsing. This means that there is not a general Shortcode grammar. Whether a shortcode has \u201ccontent,\u201d meaning [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAowwtrMDA:productID":"","_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dennis Snell: Enter the mess: 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:\/\/primeiramae.com.br\/en\/dennis-snell-enter-the-mess-shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dennis Snell: Enter the mess: Shortcodes -\" \/>\n<meta property=\"og:description\" content=\"Tonight I started working on some Shortcode processing in WordPress. This is an historically nasty problem because the Shortcode syntax and parsing is wildly dynamic. Shortcode syntax is only technically recognized for shortcodes registered at the time of parsing. This means that there is not a general Shortcode grammar. Whether a shortcode has \u201ccontent,\u201d meaning [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/primeiramae.com.br\/en\/dennis-snell-enter-the-mess-shortcodes\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.instagram.com\/jornalzona\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-26T02:43:45+00:00\" \/>\n<meta name=\"author\" content=\"primeiramae\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"primeiramae\" \/>\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:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/\"},\"author\":{\"name\":\"primeiramae\",\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/#\\\/schema\\\/person\\\/0e4fd4be40445ecdfab576ce14699d00\"},\"headline\":\"Dennis Snell: Enter the mess: Shortcodes\",\"datePublished\":\"2026-09-26T02:43:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/\"},\"wordCount\":137,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/\",\"url\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/\",\"name\":\"Dennis Snell: Enter the mess: Shortcodes -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/#website\"},\"datePublished\":\"2026-09-26T02:43:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/#\\\/schema\\\/person\\\/0e4fd4be40445ecdfab576ce14699d00\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/dennis-snell-enter-the-mess-shortcodes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/primeiramae.com.br\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dennis Snell: Enter the mess: Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/#website\",\"url\":\"https:\\\/\\\/primeiramae.com.br\\\/\",\"name\":\"\",\"description\":\"An\u00fancios por voz, r\u00e1pidos e sem burocracia.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/primeiramae.com.br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/primeiramae.com.br\\\/#\\\/schema\\\/person\\\/0e4fd4be40445ecdfab576ce14699d00\",\"name\":\"primeiramae\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g\",\"caption\":\"primeiramae\"},\"sameAs\":[\"https:\\\/\\\/primeiramae.com.br\",\"https:\\\/\\\/www.instagram.com\\\/shopifyadsagency\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/david-franco-6b866013a\\\/details\\\/skills\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@gsmweightloss\"],\"url\":\"https:\\\/\\\/primeiramae.com.br\\\/en\\\/author\\\/primeiramae\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dennis Snell: Enter the mess: 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:\/\/primeiramae.com.br\/en\/dennis-snell-enter-the-mess-shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"Dennis Snell: Enter the mess: Shortcodes -","og_description":"Tonight I started working on some Shortcode processing in WordPress. This is an historically nasty problem because the Shortcode syntax and parsing is wildly dynamic. Shortcode syntax is only technically recognized for shortcodes registered at the time of parsing. This means that there is not a general Shortcode grammar. Whether a shortcode has \u201ccontent,\u201d meaning [&hellip;]","og_url":"https:\/\/primeiramae.com.br\/en\/dennis-snell-enter-the-mess-shortcodes\/","article_publisher":"https:\/\/www.instagram.com\/jornalzona\/","article_published_time":"2026-09-26T02:43:45+00:00","author":"primeiramae","twitter_card":"summary_large_image","twitter_misc":{"Written by":"primeiramae","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/#article","isPartOf":{"@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/"},"author":{"name":"primeiramae","@id":"https:\/\/primeiramae.com.br\/#\/schema\/person\/0e4fd4be40445ecdfab576ce14699d00"},"headline":"Dennis Snell: Enter the mess: Shortcodes","datePublished":"2026-09-26T02:43:45+00:00","mainEntityOfPage":{"@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/"},"wordCount":137,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/","url":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/","name":"Dennis Snell: Enter the mess: Shortcodes -","isPartOf":{"@id":"https:\/\/primeiramae.com.br\/#website"},"datePublished":"2026-09-26T02:43:45+00:00","author":{"@id":"https:\/\/primeiramae.com.br\/#\/schema\/person\/0e4fd4be40445ecdfab576ce14699d00"},"breadcrumb":{"@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/primeiramae.com.br\/dennis-snell-enter-the-mess-shortcodes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/primeiramae.com.br\/"},{"@type":"ListItem","position":2,"name":"Dennis Snell: Enter the mess: Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/primeiramae.com.br\/#website","url":"https:\/\/primeiramae.com.br\/","name":"","description":"An\u00fancios por voz, r\u00e1pidos e sem burocracia.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/primeiramae.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/primeiramae.com.br\/#\/schema\/person\/0e4fd4be40445ecdfab576ce14699d00","name":"primeiramae","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e81a8dc9fed9a587ad2aa8fda24080aeb20baa7986b2a085d5d411557dfd8594?s=96&d=wp_user_avatar&r=g","caption":"primeiramae"},"sameAs":["https:\/\/primeiramae.com.br","https:\/\/www.instagram.com\/shopifyadsagency\/","https:\/\/www.linkedin.com\/in\/david-franco-6b866013a\/details\/skills\/","https:\/\/www.youtube.com\/@gsmweightloss"],"url":"https:\/\/primeiramae.com.br\/en\/author\/primeiramae\/"}]}},"_links":{"self":[{"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/comments?post=257"}],"version-history":[{"count":0,"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/posts\/257\/revisions"}],"wp:attachment":[{"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/categories?post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/primeiramae.com.br\/en\/wp-json\/wp\/v2\/tags?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}