WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Authors ordered by post count? (6 posts)

  1. nli
    Member
    Posted 6 years ago #

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

  2. nli
    Member
    Posted 6 years ago #

    So it's not possible?

  3. Ivovic
    Member
    Posted 6 years ago #

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

    http://codex.wordpress.org/Template_Tags/wp_list_authors

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

  4. nli
    Member
    Posted 6 years ago #

    Is there any way to make it use that function?

  5. lynettechandler
    Member
    Posted 5 years 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.

  6. Josh Nankivel
    Member
    Posted 5 years 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

Topic Closed

This topic has been closed to new replies.

About this Topic