WordPress.org

Ready to get started?Download WordPress

Forums

wpautop is a joke. Please fix it. (2 posts)

  1. aljuk
    Member
    Posted 4 years ago #

    I have a page, in which I would like an ordered list, each list item to contain a heading and a paragraph.

    WordPress can't handle it. It strips off the closing p tag, butts up the closing li tag, and turns the site validation to toast.

    An unordered list. It can't even output an unordered list correctly.

    This has been going on for years...

  2. Interesting.

    I put this in:

    <ul>
    	<li><h2>Jo blow</h2> <p>Joe two</p></li>
    </ul>

    And it was fine. So then I did this:

    <ul>
    	<li>
    <h2>Jo blow</h2>
    <p>Joe two</p>
    	</li>
    </ul>

    Also fine. So I tried this:

    <ul>
    	<li>
    <h2>Jo blow</h2>
    
    Joe two
    
    	</li>
    </ul>

    And THERE it was fine.

    I have wpautop enabled. And everything works fine. What, exactly, are you putting in that's breaking?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.