WordPress.org

Ready to get started?Download WordPress

Forums

Sorting Users By Roles (On a "Staff" Page, for example) (1 post)

  1. ChrisThomson
    Member
    Posted 6 years ago #

    Hi There!

    I'm trying to come up with a "staff" page for a WordPress-powered site. Basically I want to sort users by their roles. For example, at the top would be "Administrators", then "Editors", and so on.

    Is there any way to do this? I tried wp_list_authors but that doesn't seem to want to do it. :/

    Any ideas? I'm assuming I'll have to write a sql query for this, but if there's some sort of WordPress-specific way of doing this, I'd love to know. :)

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic