Support

Account

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