# Embed Chatroom in WordPress Post

**The following code can be used to add embed chatroom in a WordPress post/page:**

```markup
<div class="iflychat-embed" data-room-id="0" data-height="600px" data-width="100%"></div>
```

&#x20;It has three attributes:

* **data-room-id** - room id (always a number). New chat room can be created via our [iFlyChat Dashboard](https://docs.iflychat.com/wordpress/broken-reference) or [REST API](https://docs.iflychat.com/api-reference/create-a-new-chat-room).
* **data-height** - This attribute decides height of the embedded chatroom.
* **data-width** - This attribute decides width of the embedded chatroom

{% hint style="info" %}
We provide one chat room (id = 0) by default with every API key. You may create more chat rooms by [**going to App Dashboard**](https://docs.iflychat.com/wordpress/broken-reference).
{% endhint %}
