I’m making a form with wp_editor. So I make that the Wp_editor is required in filling a form. But unfortunetly, Wp_editor adds themself a paragraph < p>. So how to disable this? I try to add
$settings = array(
'wpautop' => false,
);
But nothing change. Also I comment this line in default-filters.php
add_filter( 'the_content', 'wpautop' );
But nothing change again.
Regards,
This is right in the Codex. You need to remove the filter completely:
Since
wpautop
is enabled by default, commenting out the line won’t do anything for you.