How to keep a textarea and stop tinymce?

You can remove the wp-autop function which WordPress uses to format the output of the WYSIWYG editor. It will stop tinymce from adding additional p tags, but will require you to add correct formatting (because you’re removing the wp-autop the output won’t be altered. This if you use the visual editor and it doesn’t convert the visual input to valid HTML tinymce will no longer attempt to correct it).

If you still want to try, here is the code to add to your functions.php file:

<?php remove_filter ('the_content', 'wpautop'); ?>

Leave a Comment