Home › Forums › Backend Issues (wp-admin) › Using Custom Shortcodes in ACF Fields › Reply To: Using Custom Shortcodes in ACF Fields
I’ve also found that for a shortcode-only field, you should make sure “Formatting” for the field is set to “Convert HTML into tags” and not “No formatting”.
I had a text field set to:
[contact-form-7 id=”3650″ title=”My Contact Form”]
and when using:
echo do_shortcode(get_field('myfield'));
it would display as:
[contact-form-7 404 “Not Found”]
It was only when I changed “Formatting” to “Convert HTML into tags” that the shortcode was expanded properly.
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.