Unexpected “0” month in wp_get_archives() output
-
My archives page uses the wp_get_archives() function to create a drop-down box that lists each of the months for my archives.
<?php wp_get_archives('type=monthly&format=option&show_post_count=0'); ?>
It works fine, except for the fact that the very last entry is a “0” (that’s a zero):
April 2010
March 2010
February 2010
January 2010
December 2010
0Selecting the zero always links to the current month’s archive. Any idea what’s causing this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Unexpected “0” month in wp_get_archives() output’ is closed to new replies.