Title: WPML support not working
Last modified: May 18, 2018

---

# WPML support not working

 *  [newbii](https://wordpress.org/support/users/newbii/)
 * (@newbii)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wpml-support-not-working/)
 * When using WPML and WPML support addon, room search return different results 
   if page is in another language, search query also ignores adults field, e.g. 
   if 3 adults were selected, room capacity that are less than 3 will also display.
 * Could you please fix the issue?
 * Thank you 🙂

Viewing 1 replies (of 1 total)

 *  Thread Starter [newbii](https://wordpress.org/support/users/newbii/)
 * (@newbii)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wpml-support-not-working/#post-10312363)
 * Is it a mistake that you commented out the return on line 48 on this file?
 * wp-hotel-booking-wpml-support\inc\class-hbwp-support.php
 *     ```
       if ( $this->current_language_code === $this->default_language_code ) {
       	//return;
       }
       ```
   
 * Without the return, search page return no results on default language. And the
   adults arg always equal 0 in hb_search_query function, that leads to wrong search
   results on search pages other than the default language.
 * The issues are fixed temporarily on my site, but still hoping for an official
   update.

Viewing 1 replies (of 1 total)

The topic ‘WPML support not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-hotel-booking-wpml-support/assets/icon-256x256.png?rev
   =2442709)
 * [WP Hotel Booking WPML Support](https://wordpress.org/plugins/wp-hotel-booking-wpml-support/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotel-booking-wpml-support/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotel-booking-wpml-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotel-booking-wpml-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotel-booking-wpml-support/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [newbii](https://wordpress.org/support/users/newbii/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/wpml-support-not-working/#post-10312363)
 * Status: not resolved