Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is developing a site using WP Job Manager and WPML and encountered an issue where the dropdown list for selecting resumes shows all language versions instead of just the current language version.

Solution:

We recommended the client make specific changes in the code to ensure the dropdown only displays resumes in the current language. Here are the steps:

1) Navigate to the

wp-content/plugins/wp-job-manager-resumes/includes/

folder.
2) Open the

class-wp-resume-manager-apply.php

file for editing.
3) Locate line 85 and modify the code as follows:
From:

$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(),
    ]
);

To:

$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
    ]
);

Please ensure to back up your site before making these changes. If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by ericH-23 1 week, 4 days ago.

Assisted by: Bigul.

Author Posts
January 3, 2025 at 1:17 pm #16561502

ericH-23

Background of the issue:
I am developing a site using WP Jobmanager and WPML. I want users to select a resume from a dropdown list when applying for a job.

Symptoms:
The dropdown list shows all language versions of resumes instead of just the current language version.

Questions:
How can I configure the dropdown list to show only the resume in the current language?

January 3, 2025 at 4:40 pm #16562092

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Eric,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This is likely related to the ongoing compatibility issues we are experiencing with WP Job Manager and its add-ons.

Could you please confirm if it would be possible to reproduce the issue on the sandbox site we used for the previous tickets?

Test Site Login URL:- hidden link

If so, kindly provide the exact steps to replicate the bug on the sandbox site.

--
Thanks!

Bigul

January 3, 2025 at 6:24 pm #16562349

ericH-23

Hi,
Thanks, is done, please check and see the attached screenshot.
hidden link
Apply and select a resume.
Kind regards
Eric

Bildschirmfoto 2025-01-03 um 19.21.52.png
January 6, 2025 at 5:47 pm #16567274

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Eric,

Thank you for the details and for replicating the bug on the sandbox site. The issue is related to known problems with the WP Job Manager. We will investigate it further and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

January 10, 2025 at 5:13 pm #16582817

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Eric,

We are getting the expected results on the sandbox site after the following steps. Please try it on your live site after a full site backup and let us know your feedback.

1) Go to *wp-content/plugins/wp-job-manager-resumes/includes/* folder
2) Open *class-wp-resume-manager-apply.php* file for edit
3) Scroll down to line 85
4) Make the following changes and save the file

From

$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(),
	]
);

To

$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
	]
);

--
Thanks!

Bigul

January 11, 2025 at 7:16 pm #16584686

ericH-23

Hi,
Thanks, great, that works!
And you are in contact with WP Jobmanager so that this will be update save soon?
Thanks and kind regards
Eric