Support

Account

Home Forums General Issues Custom Scripts Reply To: Custom Scripts

  • Hi @mdurchholz

    For the text area field, you should be able to set the New Lines option (PRO version) or Formatting option (Free version) to “No Formatting”.

    For the WYSIWYG field, you should be able to remove the <p> tag like this:

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

    I hope this helps 🙂