How to show specific year archive into dropdown list

<?php
function foo($where) { return $where . ' AND  YEAR(post_date) = 2010 '; }
add_filter('getarchives_where', 'foo', 1, 10);
?>
<select name="archive-dropdown" onChange="document.location.href=this.options[this.selectedIndex].value;">
<option value=""><?php esc_attr_e( __('Select Issue') ); ?></option>                                                               
<?php wp_get_archives('type=daily&format=option'); ?>
</select>                                                                       
<?php remove_filter('getarchives_where', 'foo', 1, 10); ?>

Leave a Comment