Like I said before, if you really need to use PHP code in the text area, I suggest you use a shortcode instead. Please check the links I gave you before regarding shortcode. After that, you can execute the shortcode by using the do_shortcode() function like this:
Instead of like this:
If you don’t mind about the security of your site, you can always use eval() function to execute the string. Please keep in mind that I have warned you that it is a really bad idea to execute a string.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.