I’ve tried disabling WP’s auto-paragraph thingy using
remove_filter ('the_content', 'wpautop');
but I am still getting my stuff wrapped in automatic <p>
tags… What am I doing wrong?
Its at the bottom of a functions file. Its not in functions.php, but in a file that functions.php includes (and putting it in functions.php doesn’t change the behaviour at all).
Update:
var_dump( $wp_filter['the_content'] );
outputs NULL
. How can I test why this filter isn’t being run?
4 Answers
Had same problem, fixed with css:
<style>
p:empty{
height: 0;
margin: 0;
padding: 0;
}
</style>