WPML
סטטוס
ממתין למפתח
תוסף/ערכת עיצוב קשורים
WP Job Manager
תגיות נושא
Compatibility

סקירה כללית של התקלה

בעת שימוש ב־WPML עם התוסף הנלווה Resume Manager של WP Job Manager, הרשימה הנפתחת לבחירת קורות חיים מציגה את כל גרסאות השפה של קורות החיים, במקום רק את קורות החיים בשפה הנוכחית.

פתרון עוקף

אנא ודא שיש לך גיבוי אתר מלא של האתר שלך לפני שתמשיך.


  • פתח את הקובץ …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php.

  • חפש את שורה 85.

  • בתוך המתודה 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-7799
    $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
    	]
    );

כל התקלות הידועות →