2016-05-13 64 views

回答

1

您可以使用文章WordPress的功能

<?php $args = array(
'orderby'  => 'name', 
'order'   => 'ASC', 
'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]); ?> 

<?php wp_list_authors($args); ?> 

hide_empty (布爾)不要用0帖顯示作者。有效值: 1(真) - 默認 0(假)

更多地瞭解這個https://codex.wordpress.org/Function_Reference/wp_list_authors

相關問題