Removing auto p tag

Here is a code you can add in your functions.php in your WordPress template.

This code will remove the auto adding of html “p” tag in your content.