Skip to Main Content

How to view the total number of members registered on WordPress

Divi: the easiest WordPress theme to use

Divi: The best WordPress theme of all time!

With over 701.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

Have you ever wanted to view the total number of registered members on WordPress? Social proof, such as showing registered members, encourages others to register on your website. In this tutorial, we'll show you how to view the number of registered users on your WordPress blog.

Method 1: View the number of registered users with a WordPress plugin

This method is for those who do not want to waste time and prefer a quick fix. Indeed, for this solution, all you have to do is install the plugin " Simple Blog Stats »Available on WordPress.org. You can read our tutorial to find out how to install a WordPress plugin.

After activating this plugin, you need to access the " Settings> Simple Blog Stats To configure the plugin settings.

Simple blog stats plugin WordPress

This plugin allows you to display different statistics for your website. You need to click on the shortcodes to extend them, then scroll to the shortcode " Numbers of users As in the following picture.

Sbsusers list of shortcodes

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

You will notice that this shortcode is in this form « [Sbs_users] ". You will also notice that this shortcode will be wrapped with an HTML tag " chip ". You can leave that as it is, or customize this tag.

By default the generated code will be similar to this:

856

So you can add this shortcode to your page or article and even to a widget.

Are you looking for the best WordPress themes and plugins?

Download the best plugins and WordPress themes on Envato and easily create your website. Already more than 49.720.000 downloads. [EXCLUSIVE]

Method 2: How to display the number of manually registered users

This method is for those who like me are comfortable with code editing. If you have not done this before, then you can check out our tutorial on how to create a WordPress plugin.

All you have to do (when you already know how to create a plugin) is to add the following code to the latter

// 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 a shortcode that will be usable on WordPress (Articles, pages and widget).

This function does not add automatic formatting, it simply displays the number of users. You can wrap the short code with HTML code and even use CSS code, here is an example.

Join [user_count] other users who share your interest:

This is how it will look.

Usercount-preview example

Easily create your Online Store

Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]

That's it, you've managed to display the number of registered users on your WordPress blog. If you have any questions, do not hesitate, I will be happy to help you.

 

This article features 1 comment

  1. Hello, my idea is that when the customer registers a page will appear with the image of a business vip card with their name, customer number and the points they have accumulated.
    If possible, can this number be generated automatically?
    And this page should be created by registered customer or is there a way for the template to be created and the data to appear depending on the user accessing it?

    thank you in advance

Leave a comment

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

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top
2 shares
Share1
tweet
Save1