WPML

ภาพรวมของปัญหา

เมื่อใช้ Themify Music ร่วมกับ WPML ประเภทโพสต์ Albums, Events, Galleries, Videos และ Press จะแปลไม่ได้ตามค่าเริ่มต้น และอัลบั้มหรือเหตุการณ์ที่แปลแล้วจะไม่แสดงศิลปิน แนวเพลง วันที่ ตำแหน่ง หรือลิงก์ตั๋ว

วิธีแก้ปัญหาชั่วคราว

  1. ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้แล้วบันทึก:
    XML
    <wpml-config>
      <custom-types>
        <custom-type translate="1">album</custom-type>
        <custom-type translate="1">event</custom-type>
        <custom-type translate="1">gallery</custom-type>
        <custom-type translate="1">video</custom-type>
        <custom-type translate="1">press</custom-type>
      </custom-types>
      <taxonomies>
        <taxonomy translate="1">album-category</taxonomy>
        <taxonomy translate="1">album-tag</taxonomy>
        <taxonomy translate="1">event-category</taxonomy>
        <taxonomy translate="1">event-tag</taxonomy>
        <taxonomy translate="1">gallery-category</taxonomy>
        <taxonomy translate="1">gallery-tag</taxonomy>
        <taxonomy translate="1">video-category</taxonomy>
        <taxonomy translate="1">video-tag</taxonomy>
        <taxonomy translate="1">press-category</taxonomy>
        <taxonomy translate="1">press-tag</taxonomy>
      </taxonomies>
      <custom-fields>
        <custom-field action="translate">artist</custom-field>
        <custom-field action="translate">released</custom-field>
        <custom-field action="translate">genre</custom-field>
        <custom-field action="copy">buy_album</custom-field>
        <custom-field action="copy">album_tracks</custom-field>
        <custom-field action="copy">tracks_type</custom-field>
        <custom-field action="copy">album_embeds</custom-field>
        <custom-field action="copy">start_date</custom-field>
        <custom-field action="copy">end_date</custom-field>
        <custom-field action="copy">repeat</custom-field>
        <custom-field action="copy">repeat_x</custom-field>
        <custom-field action="copy">event_end_date_hide</custom-field>
        <custom-field action="translate">location</custom-field>
        <custom-field action="translate">map_address</custom-field>
        <custom-field action="copy">buy_tickets</custom-field>
      </custom-fields>
    </wpml-config>
  2. แปลอัลบั้มและเหตุการณ์อีกครั้ง

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

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

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