Forums

Edit Page injects <p> tags. Can this be prevented? (3 posts)

  1. wootang
    Member
    Posted 2 years ago #

    WordPress 2.9.2. I'm adding pages to my site, using the pages.php as a template, but obviously adding the content in the edit pages part of the pages tab from the WP dashboard area. A problem I'm seeing is that it seems WP arbitrarily adds <p></p> tags to random copy once that edited page is published. I noticed this using my browser's view source, and the <p> tags are screwing up the layout. Is there a magic WP code to use so that it doesn't inject <p> tags to page content? Thanks

  2. wootang
    Member
    Posted 2 years ago #

    or is there a way to tell WP which part of the page content is code and which is for published content?

  3. IntlOrange
    Member
    Posted 1 year ago #

    Check out the wp-unformatted plug-in. It lets you disable WP's normal XHTML parsing on a per-post basis.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags