Wordpress autop


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



Copy this code and paste it in your HTML
  1. // Remove WordPress Auto P
  2. remove_filter( 'the_content', 'wpautop' );
  3. // Auto P is also called in these filters, I'm just adding these lines for your information.
  4. // If you want to disable them, uncomment
  5. // remove_filter( 'the_content', 'wpautop' );
  6. // remove_filter( 'the_excerpt', 'wpautop' );
  7. // remove_filter( 'comment_text', 'wpautop' ); // <-- Be careful with this one
  8.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.