Support

Account

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

  • Does this work with the new ACF Pro?

    I tried this, to no effect:

    function the_field_without_wpautop( $field_name ) {
    	
    	remove_filter('acf_the_content', 'wpautop');
    	
    	the_field( $field_name );
    	
    	add_filter('acf_the_content', 'wpautop');
    	
    }