If you've ever wanted to show how many users are online and visiting your site at one time, you can. There's a plugin for it and it works great for community sites, forums and other types of interactive sites. Here's how you can show real time users in WordPress.

<h2>Using the WP-UserOnline Plugin for WordPress</h2>

<img src="https://itxdesign.com/wp-content/uploads/2015/05/WP-UserOnline.png" alt="WP-UserOnline" width="288" height="108" class="alignnone size-full wp-image-8213" />

Before you do anything else, you will need to install and activate the <a href="https://wordpress.org/plugins/wp-useronline/">WP-UserOnline Plugin</a>. This plugin will allow you to show the number of online users on your WordPress site at any time. 

After the plugin has been activated, you can access the settings by going to <strong>Settings&gt;&gt;UserOnline</strong>. 

<img src="https://itxdesign.com/wp-content/uploads/2015/05/UserOnlineMenu.png" alt="User Online Menu" width="163" height="297" class="alignnone size-full wp-image-8207" />

This area will provide all the configurations for the plugin.

<img src="https://itxdesign.com/wp-content/uploads/2015/05/UserOnlineConfigurations.png" alt="User Online Configurations" width="811" height="566" class="alignnone size-full wp-image-8208" />

When you find this page, you will have the ability to change any of the default settings. The settings you may want to change include time out, display setting and the users online page URL. However, the default settings will work for most. After you have made your adjustments, click the "save" button.

Now, you need to create a page to showcase the users found online at any given time. This is done by going to <strong>Page&gt;&gt;Add New</strong>. 

<img src="https://itxdesign.com/wp-content/uploads/2015/05/PageAddNew.png" alt="Page Add New" width="165" height="108" class="alignnone size-full wp-image-8209" />

This page can be called whatever you prefer, but the URL must match the URL within the settings for the plugin. 

<img src="https://itxdesign.com/wp-content/uploads/2015/05/WhosOnlineNow.png" alt="Who&#039;s Online Now" width="500" height="153" class="alignnone size-full wp-image-8210" />

After you have changed the URL to match the one provided in your settings, you will need to add the shortcode to the content area. The shortcode s [page_useronline]. Now, you can publish the page.

<h2>Using the User Online Widget</h2>

If you prefer to show the users on your WordPress site in the sidebar, you can do that, as well. The plugin comes with a widget, which you can access by going to <strong>Appearance&gt;&gt;Widgets</strong>.

<img src="https://itxdesign.com/wp-content/uploads/2015/05/Widgets.png" alt="Widgets" width="165" height="221" class="alignnone size-full wp-image-8211" />

From this section you can drag and drop the UserOnline Widget to your sidebar. 

<img src="https://itxdesign.com/wp-content/uploads/2015/05/UserOnlineWidget.png" alt="User Online Widget" width="436" height="226" class="alignnone size-full wp-image-8212" />

It will display the number of users on your website at any time.

This is the easiest way to show how many users are on your WordPress website at any time. Just install the plugin and use either the page or the widget to display the number.
