ภาพรวมของปัญหา
เมื่อคุณใช้ WPML ร่วมกับ Spectra Legacy คุณจะไม่สามารถแปลป๊อปอัปได้ ทุกภาษาจะแสดงป๊อปอัปในภาษาเริ่มต้น หากคุณกำหนดให้ประเภทโพสต์ป๊อปอัปแปลได้ ป๊อปอัปที่แปลแล้วจะไม่แสดงผล เนื่องจากไม่ได้รับการตั้งค่าป๊อปอัป
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่มโค้ดนี้และบันทึก:
<wpml-config> <custom-types> <custom-type translate="1">spectra-popup</custom-type> </custom-types> <custom-fields> <custom-field action="copy">spectra-popup-type</custom-field> <custom-field action="copy">spectra-popup-enabled</custom-field> <custom-field action="copy">spectra-popup-repetition</custom-field> </custom-fields> </wpml-config> - แปลป๊อปอัป