How to automatically add paragraph tags in the Visual Editor

From my Googling, it appears as though the default behavior in WordPress is to add paragraphs automatically, but in the HTML view, regardless of what style I choose in the Visual Editor’s style drop-down (paragraph, for example), paragraph tags never appear. I also do not see wpautop() called anywhere in my theme (which I inherited from a now departed developer).

What can I do to set this straight? Adding <p> tags to everything is obviously not going to fly with the content editors.

6 s
6

Paragraph tags are added upon display, not upon storage. The wpautop() function is added as a filter to the_content.

You won’t ever see these added paragraph tags in either the visual or HTML editors.

Leave a Comment