Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.