How to remove wpautop in WordPress

Pubblicato il: 06/09/2009 — Tematiche: WordPress, appunti, cms, english

Note to myself: when upgrading your WordPress installation always, alway, always remember to add back the

function remove_wpautop_content_filter() {
remove_filter('the_content','wpautop');
}

function at the end of /wp-includes/functions.php

Otherwise the handy line

add_action('loop_start','remove_wpautop_content_filter');

you have in your theme PHP files and which removes WordPress’ automatic inserting of <P> (paragraphs) not only won’t work but it will also ruin your nice layout and spit a ton of errors.
And you don’t want that, right?

post<li> | Feed RSS dei commenti | TrackBack (citazioni)

Qualcosa da aggiungere?

Additional comments powered by BackType