Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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:

http://codex.wordpress.org/Function_Reference/wpautop

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:

http://wordpress.org/plugins/wpautop-control/

share|improve this answer
add comment

Your Answer

 
discard

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.