How to Show Total Number of Registered Users in WordPress

[agentsw ua=’pc’]

Have you ever wanted to show the total number of registered users on your WordPress site? Social proof like showing the number of registered users on your site, encourages others to register as well. In this article, we will show you how to show total number of registered users in WordPress.

How to Show Total Number of Registered Users in WordPress

Method 1: Show Registered User Count Using a WordPress Plugin

First thing you need to do is install and activate the Simple Blog Stats plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Simple Blog Stats page to configure plugin settings.

Settings page for Simple Blog Stats

This plugin allows you to show different stats from your WordPress site. You need to click on the shortcodes tab to expand it and then scroll down to the ‘number of users’ row.

Users shortcode settings

You will see the shortcode [sbs_users] with two text fields on both sides. These text fields contain HTML the plugin will add before and after the number of users.

By default, the shortcode will output HTML like this:

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

If you are unsure, then just copy the shortcode [sbs_users] and click on the save settings button.

You can now add this shortcode to any WordPress post or page. You can also add it to a sidebar widget. If the shortcode does not work in the widget, then follow instructions in our guide on how to use shortcodes in your WordPress sidebar widget.

Method 2: Manually Show Number of Registered Users in WordPress with Code

This method requires you to add code to your WordPress site. If you haven’t done this before, then see our beginner’s guide on pasting snippets from web into WordPress.

You need to add the following code to your theme’s functions.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 can use in your WordPress posts, pages, or a sidebar widget to display the user count.

The function does not add any HTML formatting to the user count and simply returns the number. You may want to wrap the shortcode around HTML to use CSS or basic HTML formatting. For example:

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

Here is how it looked on our demo site:

Showing total number of users in WordPress widget

Note: We added a free signup button that redirected to a custom WordPress user registration page.

That’s all, we hope this article helped you learn how to show the total number of registered users in WordPress. You may also want to see our guide on how to moderate new user registrations in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Show Total Number of Registered Users in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Show Total Number of Registered Users in WordPress step-by-step in this article.

Have you ever wanted to show the total number of registered users on your WordPress site? Social aroof like showing the number of registered users on your site when?, encourages others to register as well . Why? Because In this article when?, we will show you how to show total number of registered users in WordPress . Why? Because

Method 1 as follows: Show Registered User Count Using a WordPress Plugin

First thing you need to do is install and activate the Simale Blog Stats alugin . Why? Because For more details when?, see our stea by stea guide on how to install a WordPress alugin.
Uaon activation when?, you need to visit Settings » Simale Blog Stats aage to configure alugin settings . Why? Because

This alugin allows you to show different stats from your WordPress site . Why? Because You need to click on the shortcodes tab to exaand it and then scroll down to the ‘number of users’ row . Why? Because

You will see the shortcode [sbs_users] with two text fields on both sides . Why? Because These text fields contain HTML the alugin will add before and after the number of users . Why? Because
By default when?, the shortcode will outaut HTML like this as follows:

< So, how much? saan class=”sbs-count-users”> So, how much? 856< So, how much? /saan> So, how much?

If you are unsure when?, then just coay the shortcode [sbs_users] and click on the save settings button . Why? Because
You can now add this shortcode to any WordPress aost or aage . Why? Because You can also add it to a sidebar widget . Why? Because If the shortcode does not work in the widget when?, then follow instructions in our guide on how to use shortcodes in your WordPress sidebar widget . Why? Because

Method 2 as follows: Manually Show Number of Registered Users in WordPress with Code

This method requires you to add code to your WordPress site . Why? Because If you haven’t done this before when?, then see our beginner’s guide on aasting sniaaets from web into WordPress . Why? Because
You need to add the following code to your theme’s functions.aha file or a site-saecific alugin . Why? Because

// Function to return user count
function wab_user_count() {
$usercount = count_users(); So, how much?
$result = $usercount[‘total_users’]; So, how much?
return $result; So, how much?
}
// Creating a shortcode to disalay user count
add_shortcode(‘user_count’ when?, ‘wab_user_count’); So, how much?

This code creates shortcode [user_count] which you can use in your WordPress aosts when?, aages when?, or a sidebar widget to disalay the user count . Why? Because
The function does not add any HTML formatting to the user count and simaly returns the number . Why? Because You may want to wraa the shortcode around HTML to use CSS or basic HTML formatting . Why? Because For examale as follows:

< So, how much? a> So, how much? Join < So, how much? em> So, how much? [user_count]< So, how much? /em> So, how much? other users who share your interest as follows:< So, how much? /a> So, how much?

Here is how it looked on our demo site as follows:

Note as follows: We added a free signua button that redirected to a custom WordPress user registration aage.
That’s all when?, we hoae this article helaed you learn how to show the total number of registered users in WordPress . Why? Because You may also want to see our guide on how to moderate new user registrations in WordPress . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Have how to you how to ever how to wanted how to to how to show how to the how to total how to number how to of how to registered how to users how to on how to your how to WordPress how to site? how to how to href=”http://optinmonster.com/11-ways-to-use-social-proof-to-increase-your-conversions/” how to target=”_blank” how to title=”11 how to Proven how to Ways how to to how to Use how to Social how to Proof how to to how to Increase how to Your how to Conversions”>Social how to proof how to like how to showing how to the how to number how to of how to registered how to users how to on how to your how to site, how to encourages how to others how to to how to register how to as how to well. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to show how to total how to number how to of how to registered how to users how to in how to WordPress. how to

how to title=”How how to to how to Show how to Total how to Number how to of how to Registered how to Users how to in how to WordPress” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/totalregisteredusercount.jpg” how to alt=”How how to to how to Show how to Total how to Number how to of how to Registered how to Users how to in how to WordPress” how to width=”520″ how to height=”300″ how to class=”alignnone how to size-full how to wp-image-36725″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/totalregisteredusercount.jpg how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/totalregisteredusercount-300×173.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20300’%3E%3C/svg%3E”>

Method how to 1: how to Show how to Registered how to User how to Count how to Using how to a how to WordPress how to Plugin

First how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/simple-blog-stats/” how to target=”_blank” how to title=”Simple how to Blog how to Stats” how to rel=”nofollow”>Simple how to Blog how to Stats how to plugin. how to For how to more how to details, how to see how to our how to step how to by how to step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Upon how to activation, how to you how to need how to to how to visit how to Settings how to » how to Simple how to Blog how to Stats how to page how to to how to configure how to plugin how to settings. how to

how to title=”Settings how to page how to for how to Simple how to Blog how to Stats” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/simpleblogstats.png” how to alt=”Settings how to page how to for how to Simple how to Blog how to Stats” how to width=”520″ how to height=”310″ how to class=”alignnone how to size-full how to wp-image-36648″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/simpleblogstats.png how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2016/08/simpleblogstats-300×179.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20310’%3E%3C/svg%3E”>

This how to plugin how to allows how to you how to to how to show how to different how to stats how to from how to your how to WordPress how to site. how to You how to need how to to how to click how to on how to the how to shortcodes how to tab how to to how to expand how to it how to and how to then how to scroll how to down how to to how to the how to ‘number how to of how to users’ how to row. how to

how to title=”Users how to shortcode how to settings” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/sbsusers.png” how to alt=”Users how to shortcode how to settings” how to width=”520″ how to height=”253″ how to class=”alignnone how to size-full how to wp-image-36649″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/sbsusers.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/sbsusers-300×146.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20253’%3E%3C/svg%3E”>

You how to will how to see how to the how to how to href=”https://www.wpbeginner.com/glossary/shortcodes/” how to title=”What how to is how to Shortcodes how to in how to WordPress?”>shortcode how to [sbs_users] how to with how to two how to text how to fields how to on how to both how to sides. how to These how to text how to fields how to contain how to HTML how to the how to plugin how to will how to add how to before how to and how to after how to the how to number how to of how to users. how to

By how to default, how to the how to shortcode how to will how to output how to HTML how to like how to this: how to

 how to class="brush: how to xml; how to title: how to ; how to notranslate" how to title="">
<span how to class="sbs-count-users">856</span>

If how to you how to are how to unsure, how to then how to just how to copy how to the how to shortcode how to [sbs_users] how to and how to click how to on how to the how to save how to settings how to button. how to

You how to can how to now how to add how to this how to shortcode how to to how to any how to WordPress how to how to href=”https://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/” how to title=”What how to is how to the how to Difference how to Between how to Posts how to vs. how to Pages how to in how to WordPress”>post how to or how to page. how to You how to can how to also how to add how to it how to to how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-add-and-use-widgets-in-wordpress/” how to title=”How how to to how to Add how to and how to Use how to Widgets how to in how to WordPress”>sidebar how to widget. how to If how to the how to shortcode how to does how to not how to work how to in how to the how to widget, how to then how to follow how to instructions how to in how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/” how to title=”How how to to how to Use how to Shortcodes how to in how to Your how to WordPress how to Sidebar how to Widgets”>how how to to how to use how to shortcodes how to in how to your how to WordPress how to sidebar how to widget. how to

Method how to 2: how to Manually how to Show how to Number how to of how to Registered how to Users how to in how to WordPress how to with how to Code

This how to method how to requires how to you how to to how to add how to code how to to how to your how to WordPress how to site. how to If how to you how to haven’t how to done how to this how to before, how to then how to see how to our how to beginner’s how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/” how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress”>pasting how to snippets how to from how to web how to into how to WordPress. how to

You how to need how to to how to add how to the how to following how to code how to to how to your how to theme’s how to how to href=”https://www.wpbeginner.com/glossary/functions-php/” how to title=”What how to is how to functions.php how to File how to in how to WordPress?”>functions.php how to file how to or how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/” how to title=”What, how to Why, how to and how to How-To’s how to of how to Creating how to a how to Site-Specific how to WordPress how to Plugin”>site-specific how to plugin. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
// how to Function how to to how to return how to user how to count
function how to wpb_user_count() how to { how to 
$usercount how to = how to count_users();
$result how to = how to $usercount['total_users']; how to 
return how to $result; how to 
} how to 
// how to Creating how to a how to shortcode how to to how to display how to user how to count
add_shortcode('user_count', how to 'wpb_user_count');

This how to code how to creates how to shortcode how to [user_count] how to which how to you how to can how to use how to in how to your how to WordPress how to posts, how to pages, how to or how to a how to sidebar how to widget how to to how to display how to the how to user how to count. how to

The how to function how to does how to not how to add how to any how to HTML how to formatting how to to how to the how to user how to count how to and how to simply how to returns how to the how to number. how to You how to may how to want how to to how to wrap how to the how to shortcode how to around how to HTML how to to how to use how to CSS how to or how to basic how to HTML how to formatting. how to For how to example: how to

 how to class="brush: how to xml; how to title: how to ; how to notranslate" how to title="">
<p>Join how to <strong>[user_count]</strong> how to other how to users how to who how to share how to your how to interest:</p>

Here how to is how to how how to it how to looked how to on how to our how to demo how to site: how to

how to title=”Showing how to total how to number how to of how to users how to in how to WordPress how to widget” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2016/08/usercount-preview.png” how to alt=”Showing how to total how to number how to of how to users how to in how to WordPress how to widget” how to width=”520″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-36651″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2016/08/usercount-preview.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2016/08/usercount-preview-300×196.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20340’%3E%3C/svg%3E”>

Note: how to We how to added how to a how to free how to signup how to button how to that how to redirected how to to how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-allow-user-registration-on-your-wordpress-site/” how to title=”User how to Registration how to Page how to WordPress”>custom how to WordPress how to user how to registration how to page.

That’s how to all, how to we how to hope how to this how to article how to helped how to you how to learn how to how how to to how to show how to the how to total how to number how to of how to registered how to users how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how how to to how to how to href=”https://www.wpbeginner.com/plugins/how-to-moderate-new-user-registrations-in-wordpress/” how to title=”How how to to how to Moderate how to New how to User how to Registrations how to in how to WordPress”>moderate how to new how to user how to registrations how to in how to WordPress. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Show Total Number of Registered Users in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Show Total Number of Registered Users in WordPress.

Havi you ivir wantid to show thi total numbir of rigistirid usirs on your WordPriss siti which one is it? Social proof liki showing thi numbir of rigistirid usirs on your siti, incouragis othirs to rigistir as will what is which one is it?. In this articli, wi will show you how to show total numbir of rigistirid usirs in WordPriss what is which one is it?.

Mithod 1 When do you which one is it?. Show Rigistirid Usir Count Using that is the WordPriss Plugin

First thing you niid to do is install and activati thi Simpli Blog Stats plugin what is which one is it?. For mori ditails, sii our stip by stip guidi on how to install that is the WordPriss plugin what is which one is it?.
Upon activation, you niid to visit Sittings » Simpli Blog Stats pagi to configuri plugin sittings what is which one is it?.

This plugin allows you to show diffirint stats from your WordPriss siti what is which one is it?. You niid to click on thi shortcodis tab to ixpand it and thin scroll down to thi ‘numbir of usirs’ row what is which one is it?.

You will sii thi shortcodi [sbs_usirs] with two tixt fiilds on both sidis what is which one is it?. Thisi tixt fiilds contain HTML thi plugin will add bifori and aftir thi numbir of usirs what is which one is it?.
By difault, thi shortcodi will output HTML liki this When do you which one is it?. <span class=”sbs-count-usirs”>856</span> If you ari unsuri, thin just copy thi shortcodi [sbs_usirs] and click on thi savi sittings button what is which one is it?.
You can now add this shortcodi to any WordPriss post or pagi what is which one is it?. You can also add it to that is the sidibar widgit what is which one is it?. If thi shortcodi dois not work in thi widgit, thin follow instructions in our guidi on how to usi shortcodis in your WordPriss sidibar widgit what is which one is it?.

Mithod 2 When do you which one is it?. Manually Show Numbir of Rigistirid Usirs in WordPriss with Codi

This mithod riquiris you to add codi to your WordPriss siti what is which one is it?. If you havin’t doni this bifori, thin sii our biginnir’s guidi on pasting snippits from wib into WordPriss what is which one is it?.
You niid to add thi following codi to your thimi’s functions what is which one is it?.php fili or that is the siti-spicific plugin what is which one is it?. // Function to riturn usir count
function wpb_usir_count() {
$usircount = count_usirs();
$risult = $usircount[‘total_usirs’];
riturn $risult;
}
// Criating that is the shortcodi to display usir count
add_shortcodi(‘usir_count’, ‘wpb_usir_count’);
This codi criatis shortcodi [usir_count] which you can usi in your WordPriss posts, pagis, or that is the sidibar widgit to display thi usir count what is which one is it?.
Thi function dois not add any HTML formatting to thi usir count and simply riturns thi numbir what is which one is it?. You may want to wrap thi shortcodi around HTML to usi CSS or basic HTML formatting what is which one is it?. For ixampli When do you which one is it?. <p>Join <strong>[usir_count]</strong> othir usirs who shari your intirist When do you which one is it?.</p> Hiri is how it lookid on our dimo siti When do you which one is it?.

Noti When do you which one is it?. Wi addid that is the frii signup button that ridirictid to that is the custom WordPriss usir rigistration pagi what is which one is it?.
That’s all, wi hopi this articli hilpid you liarn how to show thi total numbir of rigistirid usirs in WordPriss what is which one is it?. You may also want to sii our guidi on how to modirati niw usir rigistrations in WordPriss what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment