WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

bbPress is giving me a headache trying to figure out how to remove <br> and <p> tags from existing post in the database after an import. I have tried editing "formatting.php" but with no results except to hide all my forum posts for a day. Any suggestions?

share|improve this question

Take a look in here, not sure if this will accomplish what you're looking to do (the existing posts) but it should stem the tide going forward:


You're looking for something like this I think:

remove_filter( 'the_content', 'wpautop' );

This plugin also does something like that, though I've never used it:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.