Support

Account

Home Forums General Issues Removing Paragraph Tags from WYSIWYG Fields? Reply To: Removing Paragraph Tags from WYSIWYG Fields?

  • Hi,

    Not sure if this will work for you, but it worked for me..

    //Remove WPAUTOP from ACF TinyMCE Editor
    function acf_wysiwyg_remove_wpautop() {
        remove_filter('acf_the_content', 'wpautop' );
    }
    add_action('acf/init', 'acf_wysiwyg_remove_wpautop');

    This will remove it from all ACF WYSIWYG fields, but you should be able to target this to just one field..

    The difference between this function and the others I saw in this thread, is that the action is added on ‘acf/init’