Home › Forums › General Issues › Insert PHP code on specific place with ACF into WPBakery Page › Reply To: Insert PHP code on specific place with ACF into WPBakery Page
This is a question for the editor you’re using and not ACF. I do not know how to include a template file with that editor.
In most cases with these editors you need to use a shortcode to do something like this. https://developer.wordpress.org/reference/functions/add_shortcode/
The shortcode would run the php code that you posted.
Unless there is something in the editor you are using that lets you add php code in the editor.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🗓️ Just one more day until the next session of ACF Chat Fridays! Make sure to register for the latest updates on what’s coming in ACF 6.1!— Advanced Custom Fields (@wp_acf) March 30, 2023
📆 Friday 31st March 3pm UTC
👉 Register here - https://t.co/3UtvQbDwNm pic.twitter.com/7xtEJakeQN
© 2023 Advanced Custom Fields.