WordPress.org

Ready to get started?Download WordPress

Forums

Sorting authors (3 posts)

  1. gilliancs
    Member
    Posted 7 years ago #

    Does anyone know how wp_list-authors sorts? I would like to sort on Last Name but can't see how to do it. I'd be grateful for advice or pointers.

  2. Kafkaesqui

    Posted 7 years ago #

    Sorry, but wp_list_authors() does not sport a parameter for sorting its output.

    You would have to modify the list_authors() function in wp-includes/template-author-functions.php to get something like this -- and that would require a rewrite of the query it performs (since the last name value is not found in the users, but rather the usermeta table).

  3. akwhitacre
    Member
    Posted 7 years ago #

    I sent this to Kakfaesqui for his thoughts, but a friend and I just figured out how to do this:
    http://wordpress.org/support/topic/101637?replies=1#post-502444

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags