Reply To: Widget calendar and form not loading correct resource in WPML

Okay, lets start at the beginning. All the code in easyreservations_get_rooms is to get the id of the “parent resource” that is mostly in the default language as only it has the settings and combine it with the title and content of the translated one. After your change it shouldn’t work anymore as with your line it reverts all the 40 lines before and give it the id of the translation. So it wont know any resource settings like the price.

In general the pages of the resources dont have to be used and the translations are just for the system and not to use the pages or the IDs. The ID shouldn’t matter to you.