How To Do WordPress Drop Down Archives

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>

One thought on “How To Do WordPress Drop Down Archives”

Leave a Reply

Your email address will not be published. Required fields are marked *