Remove wordpress auto formatting

/ Published in: PHP
Save to your folder(s)

Removes wordpress auto <p> tags from content...additional line to clean curly quotes as well.`

Copy this code and paste it in your HTML
  1. /* remove autoformatting - you can remove from comment_text as well, but whitespace there is a good thing */
  2. remove_filter('the_content','wpautop');
  3. // remove curly quotes
  4. remove_filter('comment_text','wptexturize');
  5. remove_filter('the_title','wptexturize');
  6. remove_filter('the_content','wptexturize');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.