• Resolved nli

    (@nli)


    Is it possible to order author list in the sidebar (wp_list_authors) by post count instead of doing it alphabetically?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nli

    (@nli)

    So it’s not possible?

    ivovic

    (@ivovic)

    well, the codex page doesn’t say it’s possible.

    http://codex.ww.wp.xz.cn/Template_Tags/wp_list_authors

    that doesn’t mean its not possible, it just means that it probably isn’t using that function.

    Thread Starter nli

    (@nli)

    Is there any way to make it use that function?

    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.

    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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Authors ordered by post count?’ is closed to new replies.