5 thoughts on “2 Magical Lines to Turn the WordPress HTML Editor into a real HTML Editor

  1. doesn’t seem to work. does it need to be in a php tag? also would the_content need to be changed to the_post if used from a page.php template?

    this autoformatting feature is so frustrating. so many extra closing divs and p’s!!

    please help, thanks

  2. Great solution! Saved me loads of trouble. However, it seems to be filtering out the p tags I added myself.

    In case anyone comes by looking for the answer to the above question – yes, you need to put those between PHP tags, and no, you don’t need to change the_content to the_post.

Leave a Reply

Your email address will not be published. Required fields are marked *