Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.     $blogusers = get_users('blog_id=1&orderby=nicename&meta_key=acctype&meta_value=artists');
  3.     foreach ($blogusers as $user) {
  4.                
  5.                 $artist_name = get_user_meta($user->ID, 'artistname',true);
  6.                 $artist_avatar = get_user_meta($user->ID, 'avatar',true);
  7.                 $artist_location = get_user_meta($user->ID, 'location',true);
  8.                 $artist_genre = get_user_meta($user->ID, 'genre',true);
  9.                 $artist_instrument = get_user_meta($user->ID, 'instrument',true);
  10.     ?>
  11.                 <div class="list_users">
  12.                 <?php
  13.                
  14.                 echo '<img src=""'. $artistavatar . '"" />';
  15.                 echo '<li>' . $twitter . '</li>'; ?>
  16.                 </div>
  17.                
  18.                
  19.                 <?php
  20.         }
  21. ?>