Is it possible to use dynamic data like {post_id} inside a code block’s tag?
Hello,
Unfortunately this is not currently possible but it is on the roadmap.
1 Like
Use the get_the_ID() if already inside a code element.
2 Likes
This is now possible.
I am using it to dynamically populate the URL in a iframe script in a code block. The Dynamic data i am pulling in is stored in a ACF field
2 Likes
Hi @Corsto , how are you doing it? I have an ACF dynamic value I want to embed in an HTML code (to show a PDF embed without a plugin).
Here is the Iframe code in a code block. This is a dev site. Internal project thats on hold atm. but this works as we need it to.
Thanks for the very quick reply! This have worked for me too!