Home › Forums › General Issues › Removing Paragraph Tags from WYSIWYG Fields? › Reply To: Removing Paragraph Tags from WYSIWYG Fields?
Hi @Nitruc
Thanks for the follow up. Perhaps the solution is to remove the ‘wpautop’ filter from the formating of the WYSIWYG value.
Normally, this would be done via:
remove_filter ('the_content', 'wpautop');
But ACF uses a custom filter called ‘acf_the_content’, so try this in your functions.php file:
remove_filter ('acf_the_content', 'wpautop');
Hope that helps.
Thanks
E
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.