Support » Plugin: Custom Field Suite » shortcode inside custom field didn’t work

  • Resolved steplab

    (@steplab)


    Inside a custom field created (wysiwyg type) I type a shortcode, but when I display the field on live site I see the shortcode so it didn’t executed the shortcode.

    Thanks
    Valentina

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    You’ll need to pass the output through WP’s the_content filter, otherwise shortcodes won’t be parsed.

    $value = apply_filters( 'the_content, CFS()->get( 'your_value' ) );
    

    Not tested, but this or something similar should work.

Viewing 1 replies (of 1 total)
  • The topic ‘shortcode inside custom field didn’t work’ is closed to new replies.