Ramin Hossaini's Blog

9Jan/10

Stop WordPress from adding p and br tags

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'); ?>

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. Migrating WordPress
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.

Bear