WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alphabetize list of authors created from wp_list_authors() (2 posts)

  1. TTH247
    Member
    Posted 4 years ago #

    I have the function set to display both first and last names of the authors, but I don't know how to alphabetize the list by last name. I've checked the docs but there's no parameters to do it (which is an oversight in my opinion).

  2. TTH247
    Member
    Posted 4 years ago #

    I found a pseudo-solution. The function apparently sorts by the authors' nicenames. If you set their nicenames to "LastName FirstName", then the list will alphabetized by last name even though the names appear as "FirstName LastName."

    The catch is that any other instances of the author's name in your theme (e.g. at the bottom of a post) will likely be generated via the nicename format. So you'll have to hard-code it as FirstName LastName.

Topic Closed

This topic has been closed to new replies.

About this Topic