• I have a post with two paragraphs. When it is just text, I get two sets of paragraph tags. When I insert an image at the beginning of the post, I get two sets of P tags.

    However, when I insert a DIV at the beginning of the post, I don’t get the first set of paragraph tags, even if the DIV is closed before the first letter of the post. (I am using DIVs to flat images left and right)

    What’s up with that? Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’ve placed the div and following text on the same line, then WordPress gets sort of stuck; placing a <div> in a <p> tag is invalid XHTML, and with no start of line designating what to wrap a <p> tag around, it leaves the text on that line alone.

    Thread Starter brianlees

    (@brianlees)

    So I need to put a return in there? I’ll have to test that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When does WP add <p> tag to posts? Is this a bug?’ is closed to new replies.