WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alphabetize list of Authors in Write Post page (4 posts)

  1. ctingom
    Member
    Posted 8 years ago #

    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.

  2. ctingom
    Member
    Posted 8 years ago #

    Anybody?

  3. MichaelH
    Member
    Posted 8 years ago #

    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!

  4. ctingom
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic