Home › Forums › Front-end Issues › LightBox images in custom content field › Reply To: LightBox images in custom content field
Hi @elliot, this solution didn’t work in my situation, unfortunately.
<?PHP
$content = get_field('wysiwyg', false, false);
echo apply_filters('the_content', $content);
?>
It destroys the output of the wysiwyg
, displaying nothing.
I have the plugin Simple Lightbox installed, which I want to use for the gallery’s lightbox.
Previously, I was using:
<?PHP
the_sub_field('wysiwyg');
?>
To output the wysiwyg
normally.
Help appreciated.
Steve
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.