WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Breaking WP's auto-paragraph formatting? (2 posts)

  1. EMG
    Forum Volunteer
    Posted 5 years ago #

    Here is something I only now realized as I had never realized before as it seemed a bit counter-intuitive.

    If you have the visual editor turned off, posts written in WP and published all get their blocks of text auto-paragraphed. That's not new.

    Because it happens all the time, I assumed that WP would auto-paragraph all paragraphs of text, paragraph tags pre-existing or not.

    What I discovered in trying to code complex (but W3C valid) nested lists is that if you code in your own paragraph tags (for example, let's say you need to write three blocks of text of description for something and said something is in list form), WP will NOT add additional paragraph tags.

    What is strange is that I could have sworn that I had attempted to do just that - code in my own paragraph tags and such when writing out lists in WP - but WP completely messed up my tags.

    So I guess my question is this:

    Has this whole 'break the auto-paragraph' feature been implemented into WP all this time all along? Have we ALWAYS been able to break the auto-paragraph feature by adding the tags in ourselves?

    Does WP simply look at all posts and if there aren't any paragraph tags surrounding blocks of text, it auto-inserts them, but doesn't insert them when it sees the paragraph tags?

    Boy don't I feel kind of stupid. I sure wish I had thought to simply dump in a full XHTML-formatted post into WP and post it as is and see what happened.

  2. fldtrace
    Member
    Posted 5 years ago #

    When first I've got into WordPress, it seemed very annoying for me the auto formatting that WordPress offers, so I use disable-wpautop to eliminate that function.

    Now I can design my HTML in Dreamweaver, however I want, without worrying that WordPress will wrap everything in p tag. I know it has HTML view, where I can paste my code, but when switching in Design view it is wrapping everything again. Annoying when you do that by mistake.

    As time have passed, I have found out, that wrapping in p tag function is not that bad after all and I am planning getting back to normal.

    The way I like to work is paste the code in design view but make sure I use no style option while I paste it, and than format headers, lists etc as needed.

Topic Closed

This topic has been closed to new replies.

About this Topic