WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So when looking at the html-view in the editor there is no <p> tags, when a view the post every line break is surrounded with a <p>. How?

share|improve this question
It adds them on display.. it's one of several filters that are ran over the content when it is prepared for display. – t31os Dec 7 '11 at 18:13
Wow, I hadn't realised this. That would rather inefficient to me. I would have thought the opposite would be better: remove them on edit. Not that it matters really I guess. – ZweiBlumen Dec 7 '11 at 19:56
up vote 1 down vote accepted

The content is run through the wpautop filter (there's a lot about that on Google).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.