Home › Forums › General Issues › ACF Textarea: Show PHP? › Reply To: ACF Textarea: Show PHP?
So, I created a field named “rep_card_content” and to display it on the template, I put
<?php the_field('rep_card_content');?>. In this case, I want to be able to add ACF custom values and display them in the ACF area to display the content, as shown here:
http://image.prntscr.com/image/3caee2eb014c43adb02e24648f6f1050.png (ACF Field)
On the front end, however, the PHP shows up as raw text, and not the content that I input in the page’s custom field:
http://image.prntscr.com/image/432ea67f68d84e42ae6d8e4890d46faf.png (Front end PHP)
I want the fields to show up as the content I set it to in the admin panel, similar to how you guys have the option to convert HTML to HTML.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.