[Resolved] 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):
Selecting the zero always links to the current month’s archive. Any idea what’s causing this?
- The topic ‘[Resolved] Unexpected “0” month in wp_get_archives() output’ is closed to new replies.