ภาพรวมของปัญหา
เมื่อใช้ Beds24 Online Booking กับ WPML คุณอาจพบปัญหาต่อไปนี้: ข้อความของปุ่มและลิงก์ Beds24 ยังคงเป็นภาษาเริ่มต้นในหน้าที่แปล และหน้าการจองเปิดขึ้นเป็นภาษาเริ่มต้น
วิธีแก้ปัญหาชั่วคราว
ไปที่ WPMLการตั้งค่า และเพิ่มสิ่งต่อไปนี้ลงในการกำหนดค่า XML ที่กำหนดเอง:
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>จากนั้นแปลหน้าดังกล่าวอีกครั้ง หากต้องการเปิดหน้าการจองในภาษาของผู้เข้าชม ให้ตั้งค่าฟิลด์กำหนดเอง lang (ตัวอย่างเช่น es) ในแต่ละหน้าที่แปลแล้ว และไม่ต้องใส่ lang ใน shortcode