月間アーカイブのテキストリンクを「プルダウンメニュー」に変更する方法のまとめです。 今回は、通常投稿における月間アーカイブリンクに加えて、カスタム投稿タイプの月間アーカイブリンクもプルダウン形式で出力してみようと思います。 投稿の月間アーカイブをプルダウン [php] <select name="archive-dropdown" onChange=’document.location.href=this.options[this.selectedIndex].value;’> <option value=""><?php echo attribute_escape(__(‘月を選択してください’)); ?></option> <?php wp_get_archives (array( ‘type’ => ‘monthly’, ‘format’ => ‘option’, ‘show_pos