• Hi all,

    I have upgraded to 2.5 and recently added and published a new page (which included some of my own HTML) to my site. When I published the page I noticed that the way I had spaced and formatted my code was gone. For example I spaced my form components each with to breaks but all breaks have disappeared. Any ideas?

    I also not that certain elements are having paragraph tags inserted where they should not be. An example is enclosing a closing div with them like so:

    ‘</div>
    <p><!– /close mContent –></p>’

    where in fact my code was written like this:

    ‘</div><!– /close mContent –>’

    Why is this happening? Is it a bug?

    Thanks
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress runs a page’s text through various filters. If you’re doing something that involves a lot of custom html, you’re probably better off creating a custom page template for your page and coding the markup directly into it. Or you can use this old but good plugin to turn off selected filters on a page or post basis.

    Thread Starter chrishunt

    (@chrishunt)

    Thanks for that filosofo but it didn’t happen with 2.33.

    I’ll try a custom template and see how it goes. Thanks for the reply though ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a problem with html formatting in pages?’ is closed to new replies.