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 );
to
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.
Thanks,
paul
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.