Display an Author List

function contributors() {
global $wpdb;

$authors = $wpdb->get_results(“SELECT ID, user_nicename from $wpdb->users ORDER BY display_name”);

foreach($authors as $author) {
echo “< li>”;
echo “< a href=\””.get_bloginfo(‘url’).”/?author=”;
echo $author->ID;
echo “\”>”;
echo get_avatar($author->ID);
echo “< /a>”;
echo ‘<div>’;
echo “< a href=\””.get_bloginfo(‘url’).”/?author=”;
echo $author->ID;
echo “\”>”;
the_author_meta(‘display_name’, $author->ID);
echo “</ a>”;
echo “</div>”;
echo “< /li>”;
}
}


Author List