WordPress.org

Ready to get started?Download WordPress

Forums

Impossible to do nested lists (9 posts)

  1. Jonno
    Member
    Posted 8 years ago #

    I've tried this in the WYSIWYG editor and the standard one in 2.01 and both don't work. the WYSIWYG will create the list properly, but when you save it always removes the nesting.

    Before save you get this...which is good:

    <ul>
    <li>blah</li>
    <li>blah1</li>
    <li>blah2</li>
    </ul>
    <ul>
    <li>sub blah2</li>
    </ul>

    but after you save, in both editors, you end up with this...which makes nested lists impossible...so sad for the listmakers.

    <ul>
    <li>blah</li>
    <li>blah1</li>
    <li>blah2</li>
    </ul>
    <ul>
    <li>sub blah2</li>
    </ul>

  2. moshu
    Member
    Posted 8 years ago #

    Options > Writing > WordPress should correct invalidly nested XHTML automatically : uncheck it.

  3. Jonno
    Member
    Posted 8 years ago #

    okay, it's officially impossible to report this problem...I give up...go to your editor and try and do a nested list...or try and do one here in this forum....impossible.

    Jon

  4. moshu
    Member
    Posted 8 years ago #

    For posting small code snippets, please read carefully the instructions here below the text input area: the "backticks" usually are located on top-left of your keyboard, where ~ [tilde] is.

  5. Jonno
    Member
    Posted 8 years ago #

    Thanks Moshu, I'll do that, but it's not invalid XHTML...is it?

  6. Jonno
    Member
    Posted 8 years ago #

    Thanks for cleaning up after me! I'm a zombie.

  7. moshu
    Member
    Posted 8 years ago #

    I don't know, Your first example is the same as the second: none of them is nested. This one is nested:
    <ul>
    <li>item1</li>
    <li>item2
    <ul>
    <li>subitem1</li>
    <li>subitem2</li>
    </ul>
    </li>
    <li>item3</li>
    </ul>

  8. Jonno
    Member
    Posted 8 years ago #

    You are right...yours does work!

    I guess you just can't create them in the WYSISYG editor.

  9. moshu
    Member
    Posted 8 years ago #

    Basic rule #1: never write code in a wysiwyg gizmo...
    (this is NOT a WP thing - it's the nature of wysiwyg)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags