Advertisement
Guest User

Untitled

a guest
Feb 26th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function contributors() {
  2.  
  3. global $wpdb;
  4.  
  5. $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name <> 'admin' ORDER BY display_name");
  6. $categoryHandle = get_the_author_meta('ArtistCategory');
  7.  
  8. foreach ($authors as $author ) {
  9.  
  10. echo "<li>";
  11. echo "<a href=\"".get_bloginfo('url')."/artist/";
  12. the_author_meta('user_nicename', $author->ID);
  13. echo "/\">";
  14. the_author_meta('display_name', $author->ID);
  15. echo " (";
  16. the_author_meta('ArtistCategory', $author->ID);
  17. echo ")";
  18. echo "</a>";
  19. echo "</li>";
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement