Wordpress的Function可以显示所有作者在一个月内的文章。
<?php wp_get_archives( ); ?>
但没有作者的参数。
<?php $args = array(
'type' => 'monthly',
'limit' => '',
'format' => 'html',
'before' => '',
'after' => '',
'show_post_count' => false,
'echo' => 1,
'order' => 'DESC',
'post_type' => 'post'
);
wp_get_archives( $args ); ?>
我发现在URL上可以带作者参数的。
wp_get_archives产生的URL是这样
添加作者的ID就可以显示这个作者,在某个月发布的所有文章。
http:/www.abc.com/?m=201712&a...
所以代码应该怎么写呢?
See
https://stackoverflow.com/que...