Dynamic Contact Form 7 Shortcode from ACF in Brizy Template
We created a Brizy template for activities, where each activity can have its own Contact Form 7 form via shortcode. I’m trying to load the Contact Form 7 shortcode dynamically from an ACF field on the post.
The issue is that the Brizy Shortcode element does not support dynamic variables or ACF values.
I managed to get it working using a Brizy Text element, but Brizy automatically wraps the Contact Form 7 output in <p> tags, which breaks the form layout and adds too much spacing between fields.
Is there a cleaner or more reliable way to render a dynamic Contact Form 7 shortcode from an ACF field inside a Brizy template without the unwanted paragraph tags?


-
Hi T. Kuperus,
Thank you for reaching out.
Could you please try temporarily switching to another theme and check if the same issue still occurs there? This will help determine whether the unwanted <p> tags and spacing behavior are coming from the theme itself or from the way the shortcode is being rendered inside Brizy.
If the issue still persists after switching themes, could you please send us a link to the page so we can inspect it?
Looking forward to your update.
0 -
Thank you for your quick response, we are developing in a accept environment that has a IP block.
I tried to switch theme: form Blocksy to Twenty Twenty-Five
But see no improvement, its maybe worse:
0 -
Hi T. Kuperus,
Thank you for the update.
I’m unable to replicate the issue on my end. We would need to inspect the website directly so we can investigate this further. We may be able to provide a custom CSS workaround that could help address the issue.
Could you please allow access from the following IP address and provide the URL so we can inspect the site?
192.64.81.41
Once access is allowed, please let us know and we’ll continue checking this for you.
0 -
Hi T. Kuperus,
I just wanted to follow up and check if access from the IP address below has already been allowed so we can proceed with inspecting the website:
192.64.81.41
Kind regards,
Ariel0 -
Hi Ariel,
We have developed a fix ourselfves the dev calls it:
middleware shortcode solution. Custom shortcode to run the throughput shortcode of ACF.
So you can close this support0
Please sign in to leave a comment.
Comments
5 comments