归档的选择

<?php
//按月输出最近12个月的文章归档链接
 wp_get_archives('type=monthly&limit=12'); 
//按天输出,最近15天的文章归档链接
wp_get_archives('type=daily&limit=15');
//按日期输出每一篇文章的链接,可以用作网站地图。
wp_get_archives('type=postbypost');
?>
//在 select 标签中的演示
//这个例子很有实用价值。
<select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
  <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option> 
  <?php wp_get_archives( 'type=monthly&format=option&show_post_count=1' ); ?>
</select>