Playing nicely with WordPress

9 Feb 2006

I’m not very keen on the wordpress auto-formatting which replaces newlines with html linebreaks; I’ve been using HTML for so long now that I automatically type in the markup I want and (Damnit-Janet) I don’t want to see
unless I put it there myself.

The auto-formatting really should have a disable/enable option, and I’ve been looking at the code to try and understand how the text flows and where it gets formatted.

To turn if off, I have to edit wp-includes\\default-filters.php and comment out the wpautop filter.

// add_filter('the_content', 'wpautop');
// add_filter('the_excerpt', 'wpautop');

But then I have to look at the excerpts and user comments – no quick fixes here.