I have a query with a filter, so front-end rendering is a must. In the query, I wanted to display the post slug but I cannot see it under dynamic data. So, I achieved same by using a code block and custom code. However, the problem is that the my custom code works only when front-end rendering is turned off.
Thanks for the report.
I’m sorry for the inconvenience you’re experiencing.
You are correct, custom code is currently not supported as we are still exploring different avenues available for a safe execution.
We hopefully will have a solution in the coming weeks, so please bear with us.
@krievinshj Do you came up with an alternative solution? I’m also facing this issue now as using custom built shortcodes in the query and nothing shows when front-end rendering is turned on.
In my particular case workaround was ACF field which I added and which shows fine with frontend rendering on.
Not sure if this might help in your case.
@lukelee, Just in case this is still needed or for anyone else who finds this thread, this can be achieved using the shortcode whitelist:
Also, you can use a Paragraph block (with any html tag. e.g.
<div>) and use the dynamic inserter to insert a function.