Support

Account

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

  • Hi I can’t get this to work. I am using this code in my functions.php:

    function my_acf_add_local_field_groups() {
      remove_filter('acf_the_content', 'wpautop' );
    }
    add_action('acf/init', 'my_acf_add_local_field_groups');

    I am using wordpress 5.1.1 and using ACF PRO 5.7.13. I am using WYSIWYG fields inside a flexible content field. So I am using <?php the_sub_field('name_subfield'); ?> in my .php file

    Does anyone know if this is due to an update or if this never worked?