Place the remove_filter snippet on the line immediately before your call to display the_content. When it’s all said and done, your call should now look like:

remove_filter ('the_content', 'wpautop');
the_content();

or maybe

remove_filter ('the_content', 'wpautop');
$content = get_the_content('Read more');

Leave a Reply

Your email address will not be published. Required fields are marked *