WordPress.org

Ready to get started?Download WordPress

Forums

Sort Author List (3 posts)

  1. tjackson
    Member
    Posted 8 years ago #

    Is there any way to sort the list of authors in wp_list_authors? It seems to only sort alphabetically. I am looking to sort by user ID.

  2. gilliancs
    Member
    Posted 7 years ago #

    I can't work out what it is sorting on. Is it the username, the nickname or the Name, Last name? I'd like to sort on last name.
    If anyone has any info, I'd be grateful

  3. akwhitacre
    Member
    Posted 7 years ago #

    A friend and I just figured out how to do this for sorting by last name, which is pretty heavy duty stuff but can be tweaked to sort by other things:
    http://wordpress.org/support/topic/101637?replies=1#post-502444

    Fortunately, I think sorting by user ID is more straightforward. You can go into template-functions-authors.php (in your wp-includes directory), and around line 180, change "order by display_name" to "order by ID".

Topic Closed

This topic has been closed to new replies.

About this Topic