Support » How-To and Troubleshooting » [Resolved] Authors ordered by post count?
8 years, 8 months ago
Is it possible to order author list in the sidebar (wp_list_authors) by post count instead of doing it alphabetically?
8 years, 7 months ago
So it’s not possible?
well, the codex page doesn’t say it’s possible.
that doesn’t mean its not possible, it just means that it probably isn’t using that function.
Is there any way to make it use that function?
8 years, 1 month ago
wp_list_authors option count only displays the number of posts you can’t sort by it yet. The list authors plus plugin will do just that and also allow you to filter out authors by role or ID.
7 years, 10 months ago
How about allowing for a sort by the authors’ recent posts? This query should do it. I’m good at writing queries, but not so much with PHP. If this was an option in list authors plus, it would rock!
SELECT display_name FROM wp_users JOIN (wp_posts) ON ( wp_users.ID = wp_posts.post_author ) GROUP BY display_name ORDER BY MAX( post_date ) DESC