在wordpress中,我希望获得特定类别的月度归档的下拉列表。
<select name="archive-menu" onChange="document.location.href=this.options[this.selectedIndex].value;">
<option value="">Select month</option>
<?php wp_get_archives('type=monthly&format=option'); ?>
</select>
上面的代码显示了所有类别。是否可以使用修改后的代码或适用于此目的的插件来过滤特定类别?
谢谢,
答案 0 :(得分:0)
This thread对此进行了讨论,他们说您可以使用wp_list_categories()
或WordPress plugin Archives for a category