Support » Fixing WordPress » wp_get_archives() produces a "0" as a link, why?

  • Hello

    I am outputting an archive list of posts via

    <?php wp_get_archives(); ?>

    This is the result:

    <li><a href='sitename/2010/07/' title='July 2010'>July 2010</a></li>
    <li><a href='sitename/2010/06/' title='June 2010'>June 2010</a></li>

    …Followed by a list of all months to when the blog started…

    <li><a href='sitename/2009/03/' title='March 2009'>March 2009</a></li>
    <li><a href='sitename/2010/07/' title=' 0'> 0</a></li>

    You can see the last listing is for the current month, but just displays a “0” as the link. Clicking through the link it does show all posts for the current month.

    Any ideas why this is happening?

    Many thanks

  • The topic ‘wp_get_archives() produces a "0" as a link, why?’ is closed to new replies.