Support

Account

Home Forums General Issues Remove p tag in WYSIWYG editor Reply To: Remove p tag in WYSIWYG editor

  • Hi @bigbankclub

    The p tag is automatically created when you inserted a new line. If you want to remove it on the front end, you can try the following code:

    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.