WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_archives() produces a "0" as a link, why? (1 post)

  1. juxprose2
    Member
    Posted 3 years ago #

    Hello

    I am outputting an archive list of posts via

    <?php wp_get_archives(); ?>

    This is the result:

    <ul>
    <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>
    </ul>

    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

Topic Closed

This topic has been closed to new replies.

About this Topic