• I’m having a terrible time trying to do nested lists – like:

    1. fdasfasdfda
    2. fafasdgagga
    • afdadfafga
    • afagagagad
    • avavasvavba
    • afdagasgaga
    • Even when I cut and paste from an HTML editor, the lists don’t render as they should. Anyone have a solution to this?

      Also, every time the post autosaves, the editor jumps to a new position in the file. Any solution to this problem?

      Thanks for any suggestions. Maybe the whole problem is due to my ignorance of the WordPress editor???

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try using:

    <ol>
    <li>fdasfasdfda</li>
    <li>fafasdgagga
    <ul>
    <li>afdadfafga</li>
    <li>afagagagad</li>
    </ul></li>
    <li>avavasvavba</li>
    <li>afdagasgaga</li>
    </ol>

    in the HTML tab.

    Thread Starter pdutton

    (@pdutton)

    esmi – thanks for your answer. I guess I should have been clearer…the problem seems to occur when I try to nest two or more unordered lists within a single ordered list.

    <ol>
    <li>Ordered list item 1</li>
    <li>Ordered list item 2</li>
    <ul>
    <li>unordered list 1 item 1</li>
    <li>Unordered list 1 item 2</li>
    </ul>
    <li>Ordered list item 3</li>
    <li>Ordered list item 4</li>
    <ul>
    <li>unordered list 2 item 1</li>
    <li>Unordered list 2 item 2</li>
    </ul>
    <li>Ordered list item 5</li>
    <li>Ordered list item 6</li>
    <ul>
    <li>unordered list 3 item 1</li>
    <li>Unordered list 3 item 2</li>
    </ul>
    <li>Ordered list item 7</li>
    <li>Ordered list item 8</li>
    </ol>

    What happened was that the ordered list started renumbering after the second instance of a nested unordered list.

    Question: In your example code, you left the </li> off the end of the second ordered list item. Was that deliberate – is that what you’re suggesting?

    pdutton

    Notice that esmi has actually included the at the end of the first unordered list:

    </ul></li>

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Nested lists’ is closed to new replies.