Support » Fixing WordPress » Alphabetize list of Authors in Write Post page

  • Resolved ctingom

    (@ctingom)


    Is there any way to alphabetize the list of post authors (users) that appears in the Write Post page? I’m using WP 2.0. I have over 100 authors and it’s tricky because they’re not in alphabetical order.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anybody?

    Make a copy of wp-admin/admin-db.php. Then around line 37 in that file, where it says:

    $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable)" );

    change it to:

    $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY user_nicename" );

    Don’t tell anybody I told you this! And if it doesn’t work restore the backup copy of that file. 😉

    Changing core WordPress files is not normally recommended so do so at your own risk!

    MichaelH: You are awesome! That was easier than flipping buttermilk pancakes. Thanks much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alphabetize list of Authors in Write Post page’ is closed to new replies.