{"id":19025530,"date":"2026-09-21T16:21:18","date_gmt":"2026-09-21T16:21:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/shortcode-not-working-with-form-hash-id\/"},"modified":"2026-09-21T17:02:54","modified_gmt":"2026-09-21T17:02:54","slug":"shortcode-not-working-with-form-hash-id","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/shortcode-not-working-with-form-hash-id\/","title":{"rendered":"shortcode not working with form hash-id"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Been using plugin for years. Great thanks to you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Issue:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shortcode using form hash-ID  &#8211; eg: [contact-form-7 id=&#8221;c0ca0f2&#8243; title=&#8221;test 1&#8243;] &#8211; renders empty form (except hidden meta-fields) &amp; produces REST error eg: <a href=\"http:\/\/mysite.co.uk\/wp-json\/contact-form-7\/v1\/contact-forms\/NaN\/feedback\/schema\">http:\/\/mysite.co.uk\/wp-json\/contact-form-7\/v1\/contact-forms\/NaN\/feedback\/schema<\/a> &#8211; 404<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">whereas, if I use the form Post-ID in the shortcode id parameter &#8211; eg: [contact-form-7 id=&#8221;1096&#8243; title=&#8221;test 1&#8243;] &#8211; it works fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using latest version WP, contact form 7 plugin, theme etc, php 8.3 (also older 8.1) , 2 different (though similar) sites &#8211; tried disabling all plugins &amp; changing theme, re-saving permalinks, also same for previous versions of plugin &#8211; no effect. Inspected code &#8211; only suspect is regexp in includes\/restapi.php register_rest_rout \/(?P&lt;id&gt;\\d+) &#8211; &amp; similar. (Also looked in post_meta table &#8211; can see _hash entries in there fine).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Strangely, it worked for a while using hash-id, then just stopped working &#8211; no explicable reason &#8211; nothing else changed so far as am aware. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can you think what this might be caused by?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many thanks  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-19025530","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19025530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19025530\/revisions"}],"predecessor-version":[{"id":19025564,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19025530\/revisions\/19025564"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19025530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}