Support

Account

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