• Resolved RobLifford

    (@roblifford)


    Just upgraded a site to 2.2 from 2.0.3, and followed the instructions to the letter. All seems well now except one small thing. The theme uses a simple call to wp_get_archives, nothing unusual:

    <ul id="archives">
    <?php wp_get_archives('type=monthly'); ?>
    </ul>

    But the output includes an extra list item at the end, linked to the current month’s archive, and the link text is ” 0″. The current month & year link is correctly displayed at the top of the list.

    That last, extraneous list item looks like this:

    <li><a href='http://www.example.com/2007/05/' title=' 0'> 0</a></li>

    Note to Admins: I originally tried to create this thread as http://wordpress.org/support/topic/118918 but I clicked edit, made a small change, and saved, then found my topic closed.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_get_archives returns extra list item after upgrade to 2.2’ is closed to new replies.