Ramin Hossaini (blog)

9Jan/100

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'); ?>
Share and make me happy:
  • Twitter
  • Facebook
  • Digg
  • StumbleUpon

Related posts:

  1. My top WordPress plug-ins
  2. Performing WordPress upgrades (Linux)
  3. WordPress 2.7 Beta 1
  4. Migrating WordPress
  5. Highlight comments by Blog-author (WordPress)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Please leave these two fields as-is:

No trackbacks yet.

Bear