Home › Forums › General Issues › ACF Textarea: Show PHP? › Reply To: ACF Textarea: Show PHP?
Hi @darktakua
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:
echo do_shortcode(get_field('rep_card_content'));
Instead of like this:
the_field('rep_card_content');
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.
Thanks 🙂
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.