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

Stephen Rider wp-hackers at striderweb.com
Wed Aug 20 18:59:31 GMT 2008


On Aug 20, 2008, at 1:28 PM, Jeremy Clarke wrote:

> 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

Very cool.  I knew something like this could be done, but didn't know  
what the default HTMLification filter was.  I like this better than  
the raw call from the DB.

remove filter
call the_content
add filter

Thanks.

Stephen


More information about the wp-hackers mailing list