Here’s a really easy way on how to remove paragraphs or <p></p> from the WordPress content.

In the WordPress loop, look for the code ‘the_content().’ Add this command just before it:

<pre lang="bash">
remove_filter ('the_content', 'wpautop');
the_content();

That essentially removes all the paragraphs from the WordPress content.