add_filter('the_excerpt', 'wpautop');
comment that out inside wp-includes/default-filters.php
Nice… I wanted to know that too a few months ago. 🙂
Thread Starter
Darren
(@cutout)
Thanks whooami! I have another validation question in another thread too if you’ve got any clues.
Thanks whoami. That’s a useful plugin.
However, I have the same issue with category_description() too. And others.
How can I tell my WP to *never* wrap <p> tags automatically? Can you change your plugin to basically “remove_filter” for every tag?
That plugin is useless. It has two lines of “remove_filter”. I already have five lines of remove_filter in the plugin I saved from the suggestion above.
I need this to work:
remove_filter ('category_description', 'wpautop');
But it doesn’t. Not with that plugin either.
So if you have anything tangible to offer aside from sighing, I’d be grateful. Thanks.
category_description(x) is not wrapped in <p> tags.
<?php echo category_description(1); ?>
Ive tested it on 2.0, and a 2.3 install. (wont and dont touch versions in between)
sigh?
erick_paper, in wp-includes/default-filters.php find this code:
$filters = array('term_description');
foreach ( $filters as $filter ) {
add_filter($filter, 'wptexturize');
add_filter($filter, 'convert_chars');
add_filter($filter, 'wpautop');
comment out the last line, works like a charm!