With little bit functions Display Recently Registered Users on WordPress with Gravatar is easy, we only need to write down little bit of code and the result will be displayed. This code is original resource from WP Recipes, we only tweak it little bit.

Display Registratered Users on WordPress with Gravatar
Code to Display Recently Registered Users
<ul class="recently-user">
<?php $usernames = $wpdb->get_results("SELECT user_nicename, user_url FROM $wpdb->users ORDER BY ID DESC LIMIT 5");
foreach ($usernames as $username) {
echo '<li>' .get_avatar($username->comment_author_email, 45).'<a href="'.$username->user_url.'">'.$username->user_nicename."</a></li>";
}
?>
</ul>
Please note this code still using directly SQL Query method, if you have better method by using WordPress API resource please let’s me know. And let’s me fix the code to display recently registered users in wordpress with Gravatar. I hope this code useful for you.



This calls for some type of style to be called to make it look beter. Can you post that info too? I added this to my site but it looks like poop.
Shoot. I forgot to subscribe to thread via email. Sorry for double post.
I forgot a 2nd time to subscribe to post.
I’m looking for a way to display recently registered users and their avatars more like avatar is abs middle to the username. can you help me do this?
Hu Awesome Links
To display Some user info with their avatar is easy too. If you want display on single page (single.php) tried this method
<?php $post_author_name=get_the_author_meta("display_name"); $post_author_description=get_the_author_meta("description"); $html="<div class='clearfix' id='about_author'>\n"; $html.="<div class='img-shadow'><img width='80' height='80' class='avatar' src='http://www.gravatar.com/avatar.php?gravatar_id=".md5(get_the_author_email()). "&default=".urlencode($GLOBALS['defaultgravatar'])."&size=80&r=PG' alt='PG'/></div>\n"; $html.="<div class='author_text'>\n"; $html.="<h4>Author: <span>".$post_author_name."</span></h4>\n"; $html.= $post_author_description."\n"; $html.="</div>\n"; $html.="<div class='clear'></div>\n"; $html.="</div>"; $content .= $html; ?>I hope this trick worked on you
Pingback: How To Display Specific Content for Admin Only in WordPress # WordPress Tricks & Tips
Simple code, exactly what I was looking for. Thank you!
Pingback: WordPressに最近登録したメンバーのアバターを列記する方法 | まちいく
[...] How To Display Recently Registered Users on WordPress # WordPress Tricks & Tips [...]