Home Forums Add-ons Flexible Content Field Gallery with Flexible Content Reply To: Gallery with Flexible Content

  • Hi @elliot

    I used the code that you posted in your original reply exactly as you wrote it, with the exception that I changed

    echo do_shortcode( $shortcode );


    echo apply_filters('the_content', $shortcode);

    It seems to be working fine, but some of this is a little over my head so I wanted to get your opinion. Do you think there’s any problems with using apply_filters instead of do_shortcode? Will this require more processing and potentially slow down the page?

    I made this switch because I’m trying to use a plugin called Simple Light Box, and it won’t work if the gallery isn’t run though the the_content filter.