WPML

问题概述

当将 Parallax 与 WPML 配合使用时,版块和团队成员默认不可翻译,并且列出版块的页面的翻译副本不会显示任何版块。

临时解决方法

  1. 前往 WPML设置自定义 XML 配置,添加以下 XML 并保存:
    XML
    <wpml-config>
      <custom-types>
        <custom-type translate="1">section</custom-type>
        <custom-type translate="1">team</custom-type>
      </custom-types>
      <taxonomies>
        <taxonomy translate="1">section-category</taxonomy>
        <taxonomy translate="1">team-category</taxonomy>
      </taxonomies>
      <custom-fields>
        <custom-field action="copy-once">section_query_category</custom-field>
        <custom-field action="copy-once">section_order</custom-field>
        <custom-field action="copy-once">section_orderby</custom-field>
        <custom-field action="copy-once">section_meta_key</custom-field>
        <custom-field action="copy-once">section_posts_per_page</custom-field>
        <custom-field action="copy-once">section_hide_title</custom-field>
        <custom-field action="copy-once">section_hide_subtitle</custom-field>
        <custom-field action="copy-once">section_feature_size_page</custom-field>
        <custom-field action="copy-once">section_parallax_effect</custom-field>
        <custom-field action="copy-once">section_type</custom-field>
        <custom-field action="copy-once">section_width</custom-field>
        <custom-field action="translate">team_title</custom-field>
      </custom-fields>
    </wpml-config>
  2. 翻译部分、部分类别以及列出它们的页面。

所有已知问题

需要有关此问题的帮助?

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