How can I work with paragraphs in Wordpress?

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2010-04-11T08:14:18Z Indexed on 2010/04/11 8:23 UTC
Read the original article Hit count: 254

Filed under:
|

Wordpress has a filter that automatically add paragraphs to posts. I can remove this by adding the followin code:

// Remove the <p> tags which WP automatically inserts in psots.
remove_filter ('the_content', 'wpautop');

The problem is that i removes <br /> tags as well.

So I'm not removing this filter at the moment. My problem is that inside a DIV box, I get extra space above and below the text (at the start / end of text).

I could manipulate the <p> tag in css, but again, that will affect all <p> tags throughout the post content.

Any suggestions to what I should do?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about paragraph