Sort Author List (3 posts)

  1. tjackson
    Posted 10 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
    Posted 9 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
    Posted 9 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:

    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