Home › Forums › Front-end Issues › How to output a shortcode in an input field › Reply To: How to output a shortcode in an input field
Hi Elliott,
Thanks for your suggestion, I did try that, and the value was appearing. But I actually got it working!
The problem was the double quotes in the shortcode.
[fancygallery id="1" album="6"]
If I removed the double quotes, it worked.
[fancygallery id=1 album=6]
But I could not tell the client to always delete the double quotes when inserting a shortcode, so I kept the short code as-is:
[fancygallery id="1" album="6"]
and within advanced custom fields, I changed the format setting for the Text field type to “Convert HTML into tags” instead of “No formatting”
It works now!
Thanks,
JC
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.