admin管理员组文章数量:1410705
I get how to select posts by month with a dropwdown, according to the Codex:
<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( array( 'type' => 'monthly', 'format' => 'option', 'show_post_count' => 1 ) ); ?>
</select>
What is the correct query parameter, in the archive page where this dropdown redirects so that I can only see posts from that selected month? I'm only seeing things like:
'type' => 'monthly'
But that does not work.
本文标签: Dropdown to select posts by month and then displaying those posts in the archive page
版权声明:本文标题:Dropdown to select posts by month and then displaying those posts in the archive page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744910692a2631897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论