Textarea newline behaviour in Wordpress

Have you ever wondered why the textarea field adds ```<br>```s in your frontend HTML instead of a paragraph tag?

It turns out this is the default behaviour and it's a rather common pitfall for many WordPress newcomers. 

Here's the deal:

##### Hit Enter twice for a paragraph ```p```.

##### Hit it just once for a regular single line break ```<br>```.

You can also [disable this behaviour](https://wpcatalogue.com/how-to-disable-automatic-paragraph-tags-in-wordpress/) via an `wpautop` filter.

Nick Ciolpan
05 Apr 2020
« Back to post