Support » Themes and Templates » Alphabetize list of authors created from wp_list_authors()

  • Resolved TTH247

    (@tth247)


    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).

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Alphabetize list of authors created from wp_list_authors()’ is closed to new replies.