WPML
สถานะ
รอผู้พัฒนา
ปลั๊กอิน/ธีมที่เกี่ยวข้อง
WP Job Manager
แท็กหัวข้อ
Compatibility

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

เมื่อใช้งาน WPML ร่วมกับ ส่วนเสริม Applications ของ WP Job Manager เรซูเม่ในใบสมัครจะแสดงในทุกภาษาในเมนูดรอปดาวน์แทนที่จะเป็นภาษาที่เลือกไว้ในปัจจุบัน

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

โปรดตรวจสอบให้แน่ใจว่าได้สำรองข้อมูลไซต์ทั้งหมดก่อนดำเนินการต่อ


  • เปิดไฟล์ …/wp-content/plugins/wp-job-manager-applications/includes/class-wp-job-manager-applications-apply.php

  • ค้นหาบรรทัดที่ 250

  • แทนที่:
    $args         = apply_filters(
        'resume_manager_get_application_form_resumes_args',
        [
            'post_type'           => 'resume',
            'post_status'         => [ 'publish' ],
            'ignore_sticky_posts' => 1,
            'posts_per_page'      => -1,
            'orderby'             => 'date',
            'order'               => 'desc',
            'author'              => get_current_user_id(),
        ]
    );

  • ด้วย:
    // WPML Workaround for compsupp-7819
    $args         = apply_filters(
        'resume_manager_get_application_form_resumes_args',
        [
            'post_type'           => 'resume',
            'post_status'         => [ 'publish' ],
            'ignore_sticky_posts' => 1,
            'posts_per_page'      => -1,
            'orderby'             => 'date',
            'order'               => 'desc',
            'author'              => get_current_user_id(),
            'suppress_filters'    => false, // add this line
        ]
    );

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