WPML

Overview of the Issue

When using Beds24 Online Booking with WPML, you might experience the following issues: the text of Beds24 buttons and links stays in the default language on translated pages, and the booking page opens in the default language.

Workaround

Go to WPMLSettings and add the following to the Custom XML Configuration:

XML
<wpml-config>
  <custom-fields>
    <custom-field action="copy">propid</custom-field>
  </custom-fields>
  <shortcodes>
    <shortcode>
      <tag>beds24-button</tag>
      <attributes><attribute>text</attribute></attributes>
    </shortcode>
    <shortcode>
      <tag>beds24-link</tag>
      <attributes><attribute>text</attribute></attributes>
    </shortcode>
    <shortcode>
      <tag>bookwidget</tag>
      <attributes><attribute>buttontitle</attribute></attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Then translate the pages again. To open the booking page in the visitor’s language, set the custom field lang (for example es) on each translated page, and leave lang out of the shortcode.

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.