Chuyển đến nội dung Chuyển đến thanh bên

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the editable application form provided by WP Job Manager’s add-on Resume Manager, 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-resumes/includes/class-wp-resume-manager-apply.php file.
  • Look for line 83.
  • Inside the get_user_resumes() method, replace the following snippet:
    $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(),
    	]
    );
    
  • With:
    // 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 
    	]
    );
    

Để lại trả lời

Vui lòng giữ đúng chủ đề và tôn trọng người khác. Nếu bạn cần trợ giúp với các vấn đề không liên quan đến bài đăng này, hãy sử dụng Diễn đàn Hỗ trợ của chúng tôi để bắt đầu trò chuyện hoặc gửi vé hỗ trợ.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>