Wednesday, November 21, 2012

display all Authors in an unordered list

$args = array(
 'blog_id' => $GLOBALS['blog_id'],
 'role' => 'Author',
 'orderby' => 'nicename'
 ); 

  $blogusers = get_users($args);
//  print_r($blogusers);
    foreach ($blogusers as $user) {
    echo '' . $user->user_email . '';
    }
    


No comments:

Post a Comment