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>
Related Posts with Thumbnails You can leave a response, or trackback from your own site.
1 Comment Updates

Comments

One Comment so far. You can leave a response, or trackback from your own site.
  1. Good to hear the code worked out for you, and thanks for the link back. :)

Add Your Comments

Required
Required
Tips

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <ol> <ul> <li> <q cite=""> <strike> <strong> <sub> <sup> <u>

Your email is never published nor shared.

Ready?