How to disable auto p tags in wysiwyg editor?
remove_filter(‘acf_the_content’, ‘wpautop’);
Hi @priya-rangasamy
You can make use of the remove_filter() as posted by @rpk and you can also be achieve the same result by loading the value of the WYSIWYG field without any formatting as follows:
the_field('wysiwyg_field', false, false);
Would this work in reverse?
the_field(‘wysiwyg_field’, true, true);
Hi @cloud9
Yes this would load the WYSIWYG field with all formatting 🙂