WPML
الحالة
في انتظار المطور
الإضافة/القالب ذو الصلة
WP Job Manager
وسوم الموضوع
Compatibility

نظرة عامة على المشكلة

عند استخدام نموذج الطلب القابل للتعديل المقدم من ملحق WP Job Manager Resume Manager، تظهر السيرة الذاتية بجميع اللغات في القائمة المنسدلة بدلاً من اللغة المحددة حالياً.

حل بديل مؤقت

يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.


  • افتح الملف …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php.

  • ابحث عن السطر 83.

  • داخل الدالة get_user_resumes()، استبدل المقتطف التالي:
    $args = apply_filters(
    	'resume_manager_get_application_form_resumes_args',
    	[
    		'post_type'           => 'resume',
    		'post_status'         => [ 'publish', 'hidden' ],
    		'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', 'hidden' ],
    		'ignore_sticky_posts' => 1,
    		'posts_per_page'      => -1,
    		'orderby'             => 'date',
    		'order'               => 'desc',
    		'author'              => get_current_user_id(),
    		'suppress_filters' => false, //add this line 
    	]
    );

جميع المشاكل المعروفة →