This plugin is cool except that it's all or nothing, and I want the option to turn line breaks on or off depending on the complexity of my post.
This article has more promise, but requires tampering with core code, and I would rather it be a plugin.
So...trying to combine the best of both worlds (and write my first plugin), I have:
function disable_linebreaks($content) {
if (preg_match('/<!--DISABLE_LINEBREAKS-->/', $content)) {
remove_filter ('the_content','wpautop');
}
}
add_action('save_post','disable_linebreaks');
Not working of course, as I'm here, but it's possible right? Can a plugin guru correct my errors?