Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function contributors() {
- global $wpdb;
- $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name <> 'admin' ORDER BY display_name");
- $categoryHandle = get_the_author_meta('ArtistCategory');
- foreach ($authors as $author ) {
- echo "<li>";
- echo "<a href=\"".get_bloginfo('url')."/artist/";
- the_author_meta('user_nicename', $author->ID);
- echo "/\">";
- the_author_meta('display_name', $author->ID);
- echo " (";
- the_author_meta('ArtistCategory', $author->ID);
- echo ")";
- echo "</a>";
- echo "</li>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement