Adding the user count
To add user count functionality to WordPress, follow these steps:- Log in to WordPress as the administrator.
-
On the Dashboard in the left sidebar, click Appearance, and then click Theme Editor:
- In the right sidebar, under Theme Files, click Theme Functions (functions.php).
- Copy the following code snippet and then paste it at the bottom of the functions.php file:
- Click Update File. WordPress saves the changes to the functions.php file.
-
User count functionality is now enabled, but you must update the post or posts where you want this information to appear. To do this, open a post or page on the site, and then type
[user_count]where you want to display the user count. For example: