我以为下面的代码可以用。。。但没有骰子。类似于“AND post\\u count>0”
函数贡献者(){全局$wpdb;
$authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name <> \'admin\' AND post_count > 0 ORDER BY display_name");
foreach ($authors as $author ) {
echo "<li>";
echo "<a href=\\"".get_bloginfo(\'url\')."/author/";
the_author_meta(\'user_nicename\', $author->ID);
echo "/\\">";
echo get_avatar($author->ID, 12);
echo "</a>";
echo "<a href=\\"".get_bloginfo(\'url\')."/author/";
the_author_meta(\'user_nicename\', $author->ID);
echo "/\\">";
the_author_meta(\'display_name\', $author->ID);
echo "</a>";
echo "</li>";
}
}