# How to set up WPML plugin with HBook?

Once you have activated and configured WPML plugin, you need to adjust WPML with HBook.

<a id="set-that-the-accommodation-posts-are-translatable"></a>

### Set that the “Accommodation” posts are translatable.

You will set this in **WPML > Settings > Multilingual Content Setup > Post type translations**:

![wpml-post-translation.png](./attachments/wpml-post-translation.png)

You can now translate the Accommodation pages.

<a id="enable-a-language-cookie-for-ajax"></a>

### Enable a language cookie for AJAX

When you use WPML with HBook, you need as well to enable “**Language filtering for AJAX operation**”. You will find this option in **WPML > Languages**.

![wpml-ajax.png](./attachments/wpml-ajax.png)

> [!INFO]
> Note that the Accommodation settings (occupancy, starting price, number of accommodation…) are only shown in the main language accommodation post.

* * *

<a id="blue-starhttps-maestrelatlassiannet-wiki-s-2141288751-6452-1a940726dccdfd22f4f3d128e6624577122d8c54-_-images-icons-emoticons-72-1f9d0png-wpml-the-results-of-a-search-are-not-displayed-in-the-correct-language"></a>

## ![(blue star)](https://maestrel.atlassian.net/wiki/s/-2141288751/6452/1a940726dccdfd22f4f3d128e6624577122d8c54/_/images/icons/emoticons/72/1f9d0.png)

 WPML: the results of a search are not displayed in the correct language.

When you use WPML with HBook, you need to enable “Language filtering for AJAX operation”. You will find this option in **WPML > Languages**. For more details regarding this option, please refer to WPML documentation [here](https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/).