Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Create Chat Rooms in WordPress for Your Users

Recently one of our readers asked if it was possible to create chat rooms on your WordPress site for your users?

A chat room hosted on your site will allows your visitors to chat with each other without needing to install a third-party chat client like Slack or Discord.

In this article, we’ll show you how to create a chat room in WordPress.

Adding chat rooms to a WordPress website

Why Add a Chat Room in WordPress?

If you run a small membership website or an online forum, then you may want to add instant messaging chat room for your users.

Normally, you can use third-party services like Slack, WhatsApp, Facebook groups, Discord, etc. But the downside is that all the communication will happen outside your website.

An on-site chat room can make your small community come alive and allow users to talk to each other without leaving your website.

Note: These chat rooms are for small community of users. If you are looking for live chat for customer support, then check out our list of best live chat support software.

That being said, let’s take a look at how to easily add a chat room to your WordPress site.

Adding Chat Rooms in WordPress

First, you’ll need to install and activate the Simple Ajax Chat plugin. For more details, see our guide on how to install a WordPress plugin.

Once you’ve activated the plugin, simply go to the Settings » Simple Ajax Chat page to set up your chat room.

You need to go to the Plugin Settings section and change the name of your chat under ‘General Settings.’ We called it ‘My Chat Room’ for this example.

Default chat room name

Under general settings, there are a bunch of options that you can use to customize your chat room.

For instance, you can require users to be logged in to use the chat feature. Or they can use their logged-in username as their chat name, and more.

You can also customize the appearance of your chat room and even manage banned words and phrases if you want to.

How to Display Your Chat Room in WordPress

The next step is to create the page where you want your chat room to live. On the settings page, scroll down to the “Shortcode & Template Tag” area and click to open it.

You’ll see the shortcode that you need to copy:

Copy your chat room short code

Next, go to Pages » Add New in your WordPress admin, and name your page.

Create your chat room page

After that, you can add the shortcode ‘[sac_happens]’ to display your chat room.

To add the shortcode, first you’ll need to click the circle with the ‘+’ sign in the upper left corner of the WordPress block editor. Next, type in ‘short’, and you’ll see the shortcode option.

Add WordPress shortcode block

Click the shortcode button to add it to your page and then paste the shortcode ‘[sac_happens]’ into that area.

Insert shortcode into page

Now you can click the Publish button to save your changes. After that, go ahed and check out your page to see your live chat room in action. This is how it looked on our test site.

Chat room published on page

We hope this article helped you learn how to create chat rooms using WordPress for users. You might also want to see our guide on the best chatbot software, and how to add web push notifications in WordPress to connect with your visitors after they leave your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

20 CommentsLeave a Reply

    • The users do not need a WordPress account but you can require an account on your site if you wanted.


  1. I installed and activated the plugin but its not working.

    403 Forbidden
    The website’s configuration prevents you from accessing this page.

  2. This is great.

    I just got a job for an online bar, not really and online bar but there would be a platform where the visitors can interact with some of the brand ambassadors.

    I think I will try out this plugin to see how it works.


  3. Hi

    i have chat room site and i want to use wordpress chat room their is any plugin that i can use on my blog right now i am using someone else chat room scrpit but i want to add mine chat room please suggest if their is any good chat room thanks

  4. I used that plugin on my website – it works fine but is too simple. Mainly no file sharing feature so I switched to Chatwee. It suits me better.

  5. Hello. How do I create something like the top of your site, such as HOME »BLOG» WORDPRESS PLUGINS »HOW TO CREATE CHAT ROOMS …

  6. I’m always looking for way to increase the use of our organization’s WordPress install. We have a bulletin board running on another system but I want to centralize systems. Perhaps bbpress with this plugin is the way forward.

    • Have to agree with this. Looked into both and the one you posted is way better! I’ve been looking for something JUST like this for my site at so I really appreciate it!

      No worries, @WPBeginner, still love your site and it’s so beautiful. ;) Wouldn’t have figured this out if you hadn’t posted about WordPress chat in the first place!

      Thanks guys!

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.