How To Display Recently Registered Users on WordPress


Sponsored Links






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.

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Display Content for Admin Only

Display Specific Content for Admin Only in WordPress can be done easily, all need to do just write some if else statement with same parameter. On this example I will show you how to display simple stats from WordPress and … Read More

Get Recent Comment with Gravatar without plugin

Many WordPress User need to display Recent Comment on the sidebar or footer with Gravatar, most of them using plugin, right now I will show you how to Get Recent Comment with Gravatar without plugin. All need to do just … Read More

Show Data for Registered/Logged User only

With tiny step, we can display menu or messages for currently logged for registered user in WordPress. We only need added extra function and done. On this tricks we will give some example. If have wrote similar tricks but this … Read More

Tricks: Display Total Twitter Followers as Text on WordPress

Everybody blogging everybody using Twitter for Microbloging tools. On this tips, I will show you how to display your total twitter followers on your sidebar or whatever and displaying as text. All need to do is add little bit code … Read More

How To Display Twitter counter in Text

Update: Better Code Display Twitter Counter Text using WordPress Api Display Twitter Counter in Text is easily in WordPress with PHP code, all need to do just write down some PHP Script in our wordpress theme, we can write it … Read More

How to Display a Dynamics Date Copyright

Have you ever seen, some time website has Copyright on the footer? Example on WordPress Tricks Copyright © 2010 - WordPress Tricks & Tips is proudly powered by WordPress, On this tutorial I will show you How to Create and … Read More

How To Display Recently Registered Users on WordPress / WordPress

Daily The Best WordPress Tricks and WordPress Tips to make your WordPress nice read more

Source: http://wptricks.net/how-to-display-recently-registered-users-on-wordpress/

Show Data for Registered/Logged User only / WordPress Tricks & Tips

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 read more

Source: http://wptricks.net/show-data-for-registeredlogged-user-only/

WordPress › vertical scroll recent registered user « WordPress

Vertical scroll recent registered user wordpress plugin create the scroller in the widget with recently option to display/hide registered date. Have option to display read more

Source: http://wordpress.org/extend/plugins/vertical-scroll-recent-registered-user/

Stupid WordPress Tricks • Perishable Press

Display Total Number of Trackbacks and Pingbacks; Display Recently Registered Users; List all of Your Site’s Posts; List WordPress User Information read more

Source: http://perishablepress.com/press/2009/12/01/stupid-wordpress-tricks/

Wordpress plugin vertical scroll recent registered user

Vertical scroll recent registered user wordpress plugin create the scroller in the widget with recently registered For example if you enter 5, it will display 5 users at read more

Source: http://www.gopiplus.com/work/2010/07/18/vertical-scroll-recent-registered-user/


8 Responses to How To Display Recently Registered Users on WordPress

  1. 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.

  2. Shoot. I forgot to subscribe to thread via email. Sorry for double post.

  3. 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?

    • WP Tricks says:

      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

  4. Pingback: How To Display Specific Content for Admin Only in WordPress # WordPress Tricks & Tips

  5. wphax says:

    Simple code, exactly what I was looking for. Thank you!

    :)

  6. Pingback: WordPressに最近登録したメンバーのアバターを列記する方法 | まちいく

  7. emt tips says:

    [...] How To Display Recently Registered Users on WordPress # WordPress Tricks & Tips [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>