WordPress:按帖子数量顺序显示分类法的作者
我想显示一个分类法的作者列表,并按帖子数量对列表进行排序。 最后,我想展示作者的图片,这些图片的大小取决于他们的帖子数量 以下是我的资料(来源:):WordPress:按帖子数量顺序显示分类法的作者,wordpress,taxonomy,author,Wordpress,Taxonomy,Author,我想显示一个分类法的作者列表,并按帖子数量对列表进行排序。 最后,我想展示作者的图片,这些图片的大小取决于他们的帖子数量 以下是我的资料(来源:): 这是正确的方向吗? 我不知道怎样才能订购这些作者(您完全可以使用WP查询进行此操作。如果使用得当,WordPress查询是一个非常强大的工具。或者您可以使用名为list_authors的WP函数列出作者 <?php wp_list_authors( $args ); ?> <?php $args = array( '
这是正确的方向吗?
我不知道怎样才能订购这些作者(您完全可以使用WP查询进行此操作。如果使用得当,WordPress查询是一个非常强大的工具。或者您可以使用名为list_authors的WP函数列出作者
<?php wp_list_authors( $args ); ?>
<?php $args = array(
'orderby' => 'post_count',
'order' => 'DESC',
'number' => null,
'optioncount' => false,
'exclude_admin' => true,
'show_fullname' => false,
'hide_empty' => true,
'echo' => true,
'feed' => [empty string],
'feed_image' => [empty string],
'feed_type' => [empty string],
'style' => 'list',
'html' => true,
'exclude' => [empty string],
'include' => [empty string] ); ?>
是,但使用WP功能WP_list_authors,我不能只列出特定类别/税务档案中的作者。
<?php wp_list_authors( $args ); ?>
<?php $args = array(
'orderby' => 'post_count',
'order' => 'DESC',
'number' => null,
'optioncount' => false,
'exclude_admin' => true,
'show_fullname' => false,
'hide_empty' => true,
'echo' => true,
'feed' => [empty string],
'feed_image' => [empty string],
'feed_type' => [empty string],
'style' => 'list',
'html' => true,
'exclude' => [empty string],
'include' => [empty string] ); ?>