Home › Forums › Backend Issues (wp-admin) › Using Custom Shortcodes in ACF Fields › Reply To: Using Custom Shortcodes in ACF Fields
Okay. Yeah it would not work if you have mixed shortcode and string content.
Strangely I think your current code should work.. the_content filter should change any shortcode into it’s output.. are you 100% sure you declare your shortcode correctly in the field?
Another solution would be to have two fields. One where you can put in any string and another which would contain only the shortcode.
That way my first example should work.
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.