Ramin Hossaini (blog)

9Jan/100

Stop Wordpress from adding p and br tags

Private

Even without the visual-editor, Wordpress has a habit of adding <p> and <br/> tags

Add this to your templates/pages/whatever and it should take care of the problem.

<?php remove_filter('the_content', 'wpautop'); ?>
Share and Enjoy:
  • Twitter
  • Digg
  • del.icio.us
  • Facebook
  • Reddit
  • StumbleUpon

Related posts:

  1. My top Wordpress plug-ins
  2. Performing Wordpress upgrades (Linux)
  3. Wordpress 2.7 Beta 1
  4. Highlight comments by Blog-author (Wordpress)
  5. Reducing spam even further in Wordpress
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Please leave these two fields as-is:

No trackbacks yet.

Private