[wp-hackers] Block auto formatting of post content?

Jeremy Clarke jer-wphackers at simianuprising.com
Wed Aug 20 18:28:38 GMT 2008


Just for the sake of argument, you could also remove ONLY wpautop by
doing a (off hte top of my head):

remove_filter('the_content', 'wpautop');

That way any other filters on the_content would still run, which is
pretty important in case you are (or might in the future) run plugins
that add filters to it. It might also be worth turning the filter back
on after you remove it in case the_content is used later in the page.

-- 
Jeremy Clarke | http://simianuprising.com
Code and Design | http://globalvoicesonline.org


More information about the wp-hackers mailing list