Needed this for work; WordPress Drop Down Archives hard coded in so that if the user isn’t using a widget, then it’s enabled by default.
The code comes from Pro Blog Design and is here:
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
Comments
One Comment so far. You can leave a response, or trackback from your own site.Good to hear the code worked out for you, and thanks for the link back.