Home > WordPress忘備録

WordPress忘備録

  • 2008-02-13 (水) 10:04

アーカイブを折りたたみ。
<select onchange="nav(this)">
<option>月を選択</option>
<?php wp_get_archives('type=monthly&show_post_count=1&format=option'); ?>
</select>
<script type="text/javascript" charset="utf-8">
function nav(sel) {
if (sel.selectedIndex == -1) return;
var opt = sel.options[sel.selectedIndex];
if (opt && opt.value)
location.href = opt.value;
}
</script>


Share

Comments:0

Comment Form
Remember personal info

Trackback+Pingback:0

TrackBack URL for this entry
http://www.nakamuland.com/wp-trackback.php?p=95
Listed below are links to weblogs that reference
WordPress忘備録 from nakamuland

Home > WordPress忘備録

Search
Feeds
Meta
カウンター
カウンター
2001.06.19 open
zenback
あわせて読みたい
あわせて読みたい
Last-fm

Return to page top