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:


    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 🙂