WordPress.org

Ready to get started?Download WordPress

Forums

wordpress adding <p> tags (5 posts)

  1. bremmerm
    Member
    Posted 5 years ago #

    I know this has been posted before, but I am posting it again because I badly need to find a solution.

    Every time I save a page wordpress will add a <p> item </p> tag around an image or piece of code. If i delete the <p> tag's then hit update, it will just put them back. I can mask this problem by customizing the css for p tag margin and padding set to zero but then the formatting becomes skewed.

    I have TinyMCE Advanced installed but when i put multiple
    tags to make up for the useless <p> tags it will still delete the
    tags.

    I have tried installing the following plugins which have been no help:
    disable-wpautop - 2 different versions

    but wordpress still keeps adding <p> tags.

    Ridiculously annoying!

  2. bremmerm
    Member
    Posted 5 years ago #

    So there is no solution to this problem????

  3. dragonsjaw
    Member
    Posted 5 years ago #

    This is my thread on the same issue:

    http://wordpress.org/support/topic/289092?replies=2#post-1134991

    It is truly ridiculous... and makes for invalid mark-up at the browser end. Very frustrating.

    I also tried editing in text editor and removing all line breaks and adding into WP TinyMCE .. no go there either. Seems like for every p tag i get rid of another will pop in somewhere else..
    and they are not visible at all in text editor, just view source.

    I really do hope there is some sort of solution for this.

    ~bobbi

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    And your post was answered.

    As to the idea that you cannot cut/paste valid code into the post content box of WP and have it output that code as valid, that's rubbish. I've been doing it for years and I always validate my pages/posts.

  5. dragonsjaw
    Member
    Posted 5 years ago #

    Really??
    I always have done that in Movable Type as well.
    I must be doing something wrong / or not understanding the way WP code view works.
    I will keep testing this.
    From all the ?'s about p tags on here I finally just assumed it was something that I had to live with.
    This is good news!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.