Dynamic Data in Code Block script tag

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