The_content () without <p> up - WordPress

I run a “loop” on my index page, and when I put the_content () in the loop, it automatically adds '<p>..</p>' between the contents, and I want to cancel it.

in any way? Thanks.

+4
source share
1 answer

Add functions.php to your file:

 remove_filter('the_content', 'wpautop'); 
+6
source

Source: https://habr.com/ru/post/1346347/


All Articles