Ordered List Starting Not at 1

  • Unknown's avatar

    I’m trying to start an ordered list not at 1, and when I plug value=”31″ into the LI code, it LOOKS like it works while I’m writing, but the minute I hit Preview or Save, the numbers go right back to starting at 1. Is this just the way the theme (Confit) is programmed, or is there something wrong? Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Hi Kelly,

    Thanks for reporting this. This is actually an issue with WordPress itself (both .com and all sites running .org on other servers). As a security precaution, only allowed HTML elements (like <li>) or attributes (like value="31").

    The <li> element, currently, only allows the align attribute. I have submitted a ticket to report this issue and submitted a patch that would allow the value attribute.

    You can follow along at http://core.trac.wordpress.org/ticket/24293 or I’ll update this support thread if action is taken.

    Cheers!

  • Hi Kelly,

    I’m still waiting on this patch to be approved, but as an alternative, have you tried setting the start attribute in the ol?

    For example, instead of

    <ol>
    <li value="31">text</li>
    </ol>

    trying
    `<ol start=”31″>
    <li>text</li>
    </ol> `

    That’ll start the ordered list at 31. If individual list items are going to skip around in number, this won’t work, but in case it helped!

  • The topic ‘Ordered List Starting Not at 1’ is closed to new replies.