Saltar navegación

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using WPML with the Resume Manager add-on of WP Job Manager, the dropdown list for selecting resumes shows all language versions of resumes, rather than only the resumes in the current 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 85.
  • 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-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
    	]
    );
    

Deje una respuesta

Por favor, mantente dentro del tema y sé respetuoso con los demás. Si necesitas ayuda con cuestiones no relacionadas con este post, utiliza nuestro Foro de soporte para iniciar un chat o enviar un ticket.

Puede utilizar estas etiquetas:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>