تخطي إلى المحتوى تخطي إلى الشريط الجانبي

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using WPML with the Applications add-on of WP Job Manager, in the application the resume appears in all languages in the dropdown instead of the currently selected language.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/wp-job-manager-applications/includes/class-wp-job-manager-applications-apply.php file.
  • Look for line 250.
  • Replace:
    $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(),
        ]
    );
    
  • With:
    // 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
        ]
    );
    

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو تقديم تذكرة.

يمكنك استخدام هذه الوسوم:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>