Home › Forums › General Issues › Removing Paragraph Tags from WYSIWYG Fields? › Reply To: Removing Paragraph Tags from WYSIWYG Fields?
Hi,
Not sure if this will work for you, but it worked for me..
//Remove WPAUTOP from ACF TinyMCE Editor
function acf_wysiwyg_remove_wpautop() {
remove_filter('acf_the_content', 'wpautop' );
}
add_action('acf/init', 'acf_wysiwyg_remove_wpautop');
This will remove it from all ACF WYSIWYG fields, but you should be able to target this to just one field..
The difference between this function and the others I saw in this thread, is that the action is added on ‘acf/init’
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.