哈奇的做法:
global $wpdb;
$min_posts = 5; // Make sure it\'s int, it\'s not escaped in the query
$author_ids = $wpdb->get_col("SELECT `post_author` FROM
(SELECT `post_author`, COUNT(*) AS `count` FROM {$wpdb->posts}
WHERE `post_status`=\'publish\' GROUP BY `post_author`) AS `stats`
WHERE `count` >= {$min_posts} ORDER BY `count` DESC;");
// Do what you want to $author_ids from here on...
这将返回
User IDs 在发表了5篇以上帖子的作者中,按帖子数量降序排列。别想了
wp_list_authors 支持您所需的内容,但您可以随时推出自己的:)