WPML

問題の概要

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を除外します。

すべての既知の問題

この問題についてサポートが必要な場合

サポートのご質問をお寄せください。一緒に調査いたします。