I’ve used this plugin in the past and have done this in the past.
$blogusers = get_users_of_blog();
if ($blogusers):
foreach ($blogusers as $bloguser):
$user = get_userdata($bloguser->user_id);
<a href="https://wordpress.stackexchange.com/questions/160928/<?php get_author_posts_url($user->ID); ?>">
get_avatar($user->ID, 70); // 70 is the size of the avatar
</a>
if(!empty($user->user_firstname)):
<h4>
<a href="https://wordpress.stackexchange.com/questions/160928/<?php get_author_posts_url($user->ID); ?>">
<?php echo $user->user_firstname . ' ' . $user->user_lastname; ?>
</a>
</h4>
endif;
endforeach;
wp_reset_query();
endif;
Hope this helps!
Related Posts:
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- Alternative to using get_avatar function?
- Using Heroku, need to have non-gravatar avatars, but not stored locally
- How to check if gravatar of user is the default’s one?
- Setting different width and height for gravatar
- How to get gravatar url alone
- Replace default avatar
- Listing all users by their avatars in wordpress
- How to output nothing instead of default avatar?
- get the avatar url instead of an html img tag when using get_avatar?
- show author avatar
- Prompt users to Upload Avatar on Registration
- Assign a random avatar to every user?
- Display avatar of user profile when logged in
- get_avatar() default image not working as of wp 3.5 [closed]
- How to restore $args for get_avatar custom “class”?
- Displaying avatar of a user
- Force users to display default Gravatars
- Change wordpress default avatar with custom plugin
- Conditional avatar
- How to get authors avatar
- Which Function Displays The Post Authors Gravatar
- show list of latest comments for each post in a loop
- How do I accesss gravatar?
- Gravatar – Default IMG
- How to change users avatar with specific e-mail addresses
- Return WP avatar inside a function
- Hexagon avatar with get_avatar()
- Anyway of specifying avatar height & width?
- Adding avatars/gravatar to a WordPress blog
- How to give users a fixed gallery of avatars to choose from?
- get_avatar_url() how to reset the default image
- get_avatar() returns image with margin-bottom
- WordPress User Gravatar images not displaying. Loading default instead
- Retrieve meta_value from add_comment_meta
- Broken Gravatar images in comments
- get_avatar not working
- How to display user’s avatar on the top of main menu in WordPress admin panel?
- list all authors outside of loop with photo from /uploads
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- How to change user`s avatar?
- Set default avatar network-wide
- Custom user avatar in the WordPress users listing
- Add aditional class to get_avatar when showing image
- How to filter get_avatar?
- Upload gravatar in WP profile?
- Use local image for default avatar
- How to override Member’s Avatars in BuddyPress [closed]
- Wrong gravatar showing up?
- Rectangle avatars
- Alternative default avatar generator?
- How to replace any occurence of Gravatars with a local placeholder image?
- How to get larger version of author avatar
- Displaying Logged-In User Name and avatar in WordPress Menu
- How to remove unused avatar uploads in buddypress [closed]
- Syncing Avatars across multisite
- Replace comment avatars and links at the same time
- Uploading avatar from the frontend
- Use Gravatar as fallback image if no local image is not found
- Random Default Avatar Function
- Changing comments avatar
- How to link avatar and nickname to profile
- The “Profile Picture” section just disappeared from my User Profile
- How to display user’s avatar on their profile page?
- woocommerce allow users to select or use avatar
- Adding an Avatar to the Top Nav Bar
- Disable Gravatars in WordPress
- Remove hovercard for only certian gravatars
- Get avatar of the logged-in user in WordPress
- How to set the default avatar of buddypress avatar [closed]
- Buddypress update user avatar image via REST
- How do I get a post author’s image/avatar via RSS from another blog?
- Change avatar on themed profile page
- How can I display other user avatars on an author profile page?
- How do I get a smaller size of an avatar image
- How to upload WP user avatar on woocommerce account page [closed]
- How to add custom user avatar in wordpress
- Change admin avatar only (without Gravatar or plugin)?
- Custom Field Repeating When Using foreach
- Avatar picture does not display when using get_avatar
- How to make current user’s avatar + display name link to their profile?
- Give users alternative/second avatar that is rectangle sized
- How to get all users that uploaded avatars or have gravatars? [closed]
- How do I pull avatar from post using BuddyPress? [closed]
- Author Avatar as default first image
- Inline-Table under TwentyTwelve not working
- How to set thumbnail for each tag?
- Facebook profile pic used as avatar
- Upload avatar for post comment
- Gender based user avatar
- WordPress get_avatar filter to match logins
- Display post author avatar for Ultimate Member
- Custom Avatars for WordPress Comments VIA Website URL?
- How to override get_avatar() function?
- WordPress shows admin’s avatar after editing a comment
- Show custom default avatar instead of gravatar
- Display “a generated one [avatar] based on their e-mail address”
- Change the avatar ratio?
- Convert User’s Avatar/Gravatar to a jpg or png on the Fly
- Displaying an Uploaded Image as a Custom Avatar in WordPress