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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.