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. แปลส่วนต่างๆ หมวดหมู่ของส่วน และหน้าที่แสดงรายการส่วนเหล่านั้น

ปัญหาที่ทราบแล้วทั้งหมด

ต้องการความช่วยเหลือเกี่ยวกับปัญหานี้หรือไม่

ถามคำถามถึงฝ่ายสนับสนุน และเราจะตรวจสอบเรื่องนี้ไปพร้อมกับคุณ