Contributors

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

foreach($authors as $author) {

$user = new WP_User( $author->ID );

if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
foreach ( $user->roles as $role )
$role=$role;
}
if (($role==’administrator’)||($role==’contributor’)){
//if ($role==’contributor’){
echo”

“;
echo”

“;
echo “ID);
echo “\”>”;
the_author_meta (‘display_name’,$author->ID);
echo “
– $role
“;
the_author_meta (‘description’,$author->ID);
echo “
“;
//$myurl = the_author_meta (‘user_url’,$author->ID);

echo”ID);
echo”\”>”;
the_author_meta (‘user_url’,$author->ID);
echo”
“;

echo”

“;
}
}
?>

Leave a Comment