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
- What should I do to make generated avatars different for anonymous comments?
- How to display random users with avatars
- Custom user avatar in the WordPress users listing
- Add aditional class to get_avatar when showing image
- How to filter get_avatar?
- Frontend Simple Local Avatar upload
- 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?
- Inserting PHP before a menu element, while using the inbuilt menu function wp_nav_menu()
- How to change user avatar using REST API?
- Get only the author profile picture image url inside a loop
- How to replace any occurence of Gravatars with a local placeholder image?
- How to make gravatar.com avatars conditional?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- How to get larger version of author avatar
- Displaying Logged-In User Name and avatar in WordPress Menu
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- 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
- Cannot get local avatars to show [closed]
- 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
- How to change avatar of the comment author using comment ID?
- 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
- get_avatar won’t show uploaded avatar, only default gravatar
- custom avatar removal
- Adding an Avatar to the Top Nav Bar
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- Setting the profile picture from another field
- Getting the current author (it has changed) of a post, not the original author
- custom default avatar showing broken link
- How to change user`s avatar?
- Disable Gravatars in WordPress
- upload or auto setup feature photo by user avatar
- Remove hovercard for only certian gravatars
- Get avatar of the logged-in user in WordPress
- Change the “Default Avatar” admin option via functions.php
- How to set the default avatar of buddypress avatar [closed]
- Best way to tell if a comment is from a user?
- Buddypress update user avatar image via REST
- How to set custom avatar for users?
- 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?
- Custom avatars in wordpress comments?
- 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