---
title: "How to set up WPML plugin with HBook?"
canonical: "https://maestrel-resource-center.refined.site/space/KB/61833368/How%20to%20set%20up%20WPML%20plugin%20with%20HBook%3F"
format: markdown
---
Once you have activated and configured WPML plugin, you need to adjust WPML with HBook.

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

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

![wpml-post-translation.png](media://6bcea2aa-5905-4620-9f4e-2943d9349ce0)

You can now translate the Accommodation pages.

### 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](media://7d10e9ca-e53f-42cf-8112-9d86551f09bb)

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


---

## 🧐 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/).