How to Show Total Number of Registered Users in WordPress

Have you ever ever needed to indicate the whole variety of registered users in your WordPress website? Social proof like displaying the variety of registered users in your website, encourages others to register as effectively. On this article, we are going to present you the right way to present whole variety of registered registered in WordPress.

Methodology 1: Present Registered Consumer Depend Utilizing a WordPress Plugin

Very first thing it’s essential do is set up and activate the Easy Weblog Stats plugin. For extra particulars, see our step-by-step information on the right way to set up a WordPress plugin.

Upon activation, it’s essential go to Settings » Easy Weblog Stats web page to configure plugin settings.

This plugin means that you can present completely different stats out of your WordPress website. It’s worthwhile to click on on the shortcodes tab to increase it after which scroll right down to the variety of users ’ row.

You will note the shortcode [sbs_users] with two textual content fields on either side. These textual content fields comprise HTML the plugin will add earlier than and after the variety of users.

By default, the shortcode will output HTML like this:

<span class="sbs-count-users">856</span>

If you’re not sure, then simply copy the shortcode [sbs_users] and click on on the save settings button.

Now you can add this shortcode to any WordPress put up or web page. It’s also possible to add it to a sidebar widget. If the shortcode doesn’t work within the widget, then observe directions in our information on the right way to use shortcodes in your WordPress sidebar widget.

Methodology 2: Manually Present Variety of Registered Users in WordPress with Code

This methodology requires you so as to add code to your WordPress website. In case you haven’t carried out this earlier than, then see our newbie’s information on pasting snippets from net into WordPress.

It’s worthwhile to add the next code to your theme’s features.php file or a site-specific plugin.

// Function to return user count
function wpb_user_count() {
$usercount = count_users();
$result = $usercount['total_users'];
return $result;
// Creating a shortcode to display user count
add_shortcode('user_count', 'wpb_user_count');

This code creates shortcode [user_count] which you should utilize in your WordPress posts, pages, or a sidebar widget to show the person depend.

The operate doesn’t add any HTML formatting to the person depend and easily returns the quantity. You could need to wrap the shortcode round HTML to make use of CSS or fundamental HTML formatting. For instance:

<p>Join <strong>[user_count]</strong> other users who share your interest:</p>


Notice: We added a free signup button that redirected to a customized WordPress person registration web page.

You May Also Like : How to Add Custom Styles to WordPress Visual Editor

That’s all, we hope this text helped you learn to present the whole variety of registered users in WordPress. You may additionally need to see our information on the right way to reasonable new person registrations in WordPress.

If you liked this article, make sure to hit the bell for getting our latest updates and share this article with your friends in every social media platforms.

1 thought on “How to Show Total Number of Registered Users in WordPress”

  1. Pingback: Basics of Inspect Element: Customizing WordPress for DIY Users

Leave a Comment

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