For multi-user WordPress sites, you may want to showcase your users on different sections of your website. For example, you can display aΒ list of authors with avatars, or add anΒ author info box, etc. In this tutorial we will show you how to display recently registered users in WordPress. These users do not need to beΒ authors. It can be used for a community site that allows for user registration.
First thing you need to do is copy and paste the following code in your themeβs functions.phpΒ file or in aΒ site-specific plugin.
Now you can display the users on your site by using the following template tag in your themeβs template file such as sidebar.php, footer.php etc:
If you want to display newly registered users on a specific page without creating a page template, then you can use a shortcode.
Simply add this code in your themeβs functions.php file or the site-specific plugin, just below the code you entered earlier.
This code will create a new shortcode for you to use in your posts, pages, or widgets. Use it like this:
[wpb_newusers]We hope this article helped you display recently registered users in WordPress. For feedback and questions, please leave a comment.