Home › Forums › Front-end Issues › Shortcodes in text field › Reply To: Shortcodes in text field
I have been using this method for a while and it’s always worked, but I am now trying to load a shortcode from a custom field inside an ACF Gutenberg block but that doesn’t seem to work for me…
I am simply storing the shortcode in my text field, when I call the text field inside my block php file and echo it using do_shortcode($custom_field_data); shortcodes aren’t being rendered.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.