Home › Forums › General Issues › Wysiwyg Editor and jQuery Colorbox › Reply To: Wysiwyg Editor and jQuery Colorbox
Hi @shawn00m
Perhaps what is happening, is the ‘color box’ plugin is using JS or PHP to add the class dynamically to the the_content value.
I hope that it is using PHP, because if it is, you can simply pass the ACF value through the the_content filter and the color-box plugin will all the class like normal.
You can use the the_filter filter like so:
echo apply_filters('the_content', get_field('field_name'));
So the above code would replace the ‘the_field(‘field_name’)’ which you are currently using.
Hope hat makes sense.
Thanks
E
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.