문제 개요
WPML과 함께 Beds24 Online Booking을 사용할 때 다음과 같은 문제가 발생할 수 있습니다: 번역된 페이지에서 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을(를) 제외하세요.