Skip Navigation

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

Problem:

If you're experiencing a 404 error when a non-admin user tries to access a resume in a different language on your site using WP Job Manager's Resume Manager, it might be due to the translation of the resume post type's slug. Admin users do not face this issue because they bypass certain permission checks.

Solution:

We recommend following these steps to resolve the issue:

1) Navigate to the

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

folder.
2) Open the

class-wp-resume-manager-post-types.php

file for editing.
3) Locate line 224 and modify the code from:

$rewrite = [
    'slug'       => _x( 'resume', 'Resume permalink - resave permalinks after changing this', 'wp-job-manager-resumes' ),
    'with_front' => false,
    'feeds'      => false,
    'pages'      => false,
];

To:

$rewrite = [
    'slug'       => 'resume',
    'with_front' => false,
    'feeds'      => false,
    'pages'      => false,
];

4) Go to WPML>>Settings>>Slug translations and ensure that "Translate custom post and taxonomy base slugs (via WPML String Translation)." option is selected.
5) In the "Post Types Translation" section, translate the Resumes Post Type slugs.
6) Navigate to Settings>>Permalinks and resave the settings.

If this solution does not apply to your case, or if it seems outdated, we highly 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 issues persist, please open a new support ticket.

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 15 replies, has 0 voices.

Last updated by ericH-23 3 days, 5 hours ago.

Assisted by: Bigul.

Author Posts
January 15, 2025 at 12:12 pm #16597025

Bigul
Supporter

Languages: English (English )

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

Hi Eric,

This bug occurs because the Resume post type's slug has been made translatable. The issue is that the slug and the singular label are the same, so it pulls the label translation from their POT file, which is 'CV'. But for other post types like resume-skill or resume-category, this shouldn't cause a problem since their strings are unique.

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

1) Visit *wp-content/plugins/wp-job-manager-resumes/includes/* folder
2) Open *class-wp-resume-manager-post-types.php* file for editing
3) Scroll down to line *224*
4) Make the following changes and save the file

From

		$rewrite = [
			'slug'       => _x( 'resume', 'Resume permalink - resave permalinks after changing this', 'wp-job-manager-resumes' ),
			'with_front' => false,
			'feeds'      => false,
			'pages'      => false,
		];

To

		$rewrite = [
			'slug'       => 'resume',
			'with_front' => false,
			'feeds'      => false,
			'pages'      => false,
		];

5) Go to WPML>>Settings>>Slug translations
6) Make sure that "Translate custom post and taxonomy base slugs (via WPML String Translation)." option is selected
7) Scroll down to the "Post Types Translation" section and translate Resumes Post Type slugs
8) Visit Settings>>Permalinks and resave the settings

--
Thanks!

Bigul

January 15, 2025 at 1:51 pm #16597553

ericH-23

Hi,
Wow, such a small change with a big effect! Well done, thank you! I'm so glad it works now!
Also here I am waiting now on a save update by adding the change into the core by WP Jobmanager developers.
Thanks, very good
Eric