[wp-hackers] Novice question - prevent post-processing??

Austin Matzko if.website at gmail.com
Tue Oct 28 12:27:01 GMT 2008

On Mon, Oct 27, 2008 at 4:07 AM, Jan Erik Moström <lists at mostrom.pp.se> wrote:
> Which shows up the same way on the wordpress page source. But if I change
> this to
> <div><a href="xx"> <img src="yy" /> </a> <p>text</p> </div>
> then I get
> <div><a href="xx"> <img src="yy" />  </a>
> <p>text</p>
> </p></div>


> Can anyone please explain what is happening and what I can do to prevent the
> processing of the code I've generated

By default WordPress's "the_content" filter calls wpautop(), and
wpautop() adds line returns before every html tag that it considers a
block element, including "<p>".

More information about the wp-hackers mailing list