Displaying online users on a WordPress Site
By default, WordPress lets administrators view registered users but does not show whether they are currently online, offline, or away. On ruachost.com, you can display online users by installing the WP Online Users Stats plugin.
Why Display Online Users?
Section titled “Why Display Online Users?”- Monitor user activity in real time.
- Improve engagement by showing who is currently active.
- Allow administrators to interact with users more effectively.
Installing the WP Online Users Stats Plugin
Section titled “Installing the WP Online Users Stats Plugin”- Log in to WordPress with an administrator account.
- In the dashboard, go to Plugins → Add New.
- Search for WP Online Users Stats.
- Click Install Now, then Activate Plugin.
✅ After activation, you’ll see a new Users Online option in the WordPress sidebar.
⚙️ Viewing Online Users
Section titled “⚙️ Viewing Online Users”-
Go to Settings → Users Online.
-
The plugin displays:
-
Registration date
Section titled “Registration date” - Status (online, offline, away)
Statuses are color‑coded for clarity:
- Green → Online
- Red → Offline
- Yellow → Away
Displaying Online Users on a Post or Page
Section titled “Displaying Online Users on a Post or Page”-
In the dashboard, go to Users Online.
-
Copy the shortcode:
[wp_online_user] -
Create or edit a post/page.
-
Paste the shortcode where you want the user list to appear.
-
Click Publish or Update.
✅ The page will now display a table of online users with their details.