• Greetings:

    Ever since I upgraded to 2.1.2 (and now 2.1.3) I’ve noticed on the sidebar that I have a archive entry with a 0 in it.

    Example:


    November 2004
    October 2004
    0

    Clicking that entry goes to the current month.

    All my posts are set to Publish so there’s no weird drafts with a month of 0 (as one thread suggested).

    Any ideas?

Viewing 12 replies - 1 through 12 (of 12 total)
  • what’s the code in your sidebar look like?

    Thread Starter daphoid

    (@daphoid)

    <?php wp_get_archives('type=monthly'); ?>

    That’s all I’m using to generate the archives, which are then wrapped in `
    <li></li>
    `’s automatically.

    Just out of curiosity, what happens when you go to manage –> posts and pull down on the “Browse By Month”? Is there anything weird in there?

    Thread Starter daphoid

    (@daphoid)

    Nope, no 0 entry in that drop down list…

    hmmm…

    That is weird. I wonder why it points to april 2007. Does it disappear if you temporily adjust the time stamp on the two posts you have in april? Change them to march or something.

    Thread Starter daphoid

    (@daphoid)

    Nope it does not, It switches to March then, evil 0.

    hmmm. I’m running out of ideas. Are you comfortable with looking through your database? That’s what I would do next if it were my blog.

    Thread Starter daphoid

    (@daphoid)

    Yep not a problem, anything I should look for specifically?

    Thread Starter daphoid

    (@daphoid)

    Got it!

    I went looking through the posts table and noticed there was a single entry with no timestamp, it was the very first post that wordpress creates. It was labeled Unpublished, I’m thinking the way archives are gathered has changed in the new version. Deleteing it solved the problem :).

    Thanks for all your help!

    Great!

    Issue resolved.

    I have been having the same problem, and this worked for me.

    I couldn’t find a fix for this by simply searching the forum, but a quick search Google brought me to this thread.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Archives Listing is showing a “0” Entry.’ is closed to new replies.