WordPress is not writing <p> and <br> tags

I recently made a new theme but wordpress is stripping out the <p> and <br> tags, so the text is not shown well formatted. I am not writing together another html that can create this issue…

I’ve seen another questions but got no answer for me. Some of them mentioned about these functions:

Read More
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

But no, i don’t have any of these written in my functions.php

So why is this happening?

Related posts

Leave a Reply

1 comment

  1. You will need to put those two filter functions into your own functions.php file in your theme. Without those two lines, the default setting for WordPress is to filter the <p> and <br> tags.