How to display online users on a WordPress Site

WordPress allows you to view the user on your WordPress site with the Users option on the left sidebar. However, the list does not display if users are online, offline, and away from the website. This article shows you how to install and configure the WP Online Users Stats plugin to view user status and their details from the WordPress Dashboard, or list them on a page or a post. This information is helpful for administrators who want to monitor or interact with their users.

What is the WP Online Users Stats plugin?

WP Online Users Stats is a free plugin in WordPress that shows the user status and details to the site administrator instantly without a page refresh. This plugin also allows you to display the user information on a blog post with a simple shortcode. You can view the following information with this plugin on a WordPress site: 

  • Name
  • Email
  • Registration date
  • Status

The status information is indicated in three colors to show available, offline, and away status.

Installing the WP Online Users Stats plugin

To install the WP Online Users Stats plugin, follow these steps:

  1. Log in to your WordPress site with an administrator account.
  2. On the Dashboard in the left sidebar, click Plugins, and then click Add New:

    Add new plugin

  3. Search for the WP Online Users Stats plugin, and a list of available plugins appears.
  4. Install and Activate the WP Online Users Stats plugin:

    WP Online Users Stats

  5. After you activate the plugin,  you see the Online Users option on the left sidebar under Settings:

    Online users on sidebar

  6. Click Users Online, and it displays the list of users connected to your WordPress site along with their email, date of registration, and status:

    List of users

How to display user details and status on a post

To view user details and status for a post, follow these steps:

  1. In the left sidebar, click Users Online.
  2. Copy the shortcode [wp_online_user] from the top of the page:

    Copy shortcode

  3. Create a new post and paste the shortcode:

    Create a post with shortcode

  4. Click Preview or Publish the page. The page displays the username email, registration date, and status in a tabular format as below:

    Preview or Publish users online page

More Information

For more information about the WP Online User Stats plugin please visit: https://oci.wordpress.org/plugins/wp-online-users-stats/

Get WordPress Hosting

Article Details

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

 

 

Loading