Authors List page – How to include only those with wp_user_level as Author

The User Query Class

There’s a class to query users. This makes a) more easy and b) more future proof as mostly the internals will change, but not the way you access it.

$the_authors = new WP_User_Query( array( 
     'role' => 'author'
) );
foreach ( $the_authors as $author )
{
    // Show what we got:
    var_dump( $author );
    echo '<br />';

    // Access parts of the author/user object(!)
    // echo $author->first_name;
}

Role vs. User Level

User level itself is deprecated since (I don’t know how many, but really many) versions. You shouldn’t use that. The idea behind it is that user levels are a hirachical way of organizing restrictions, while roles are not. In theory you can give a user more than one role to reflect the restrictions and possiblities she/he has in your system.