WPML

问题概述

将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。

所有已知问题

需要有关此问题的帮助?

提出支持问题,我们将与您一起调查。