דלג על ניווט

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using WPML with the Resume Manager add-on of WP Job Manager, translated Resume posts result in a 404 error. This occurs when attempting to view a translated Resume post.

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-post-types.php file
  • Look for line 224.
  • Replace:
    		$rewrite = [
    			'slug'       => _x( 'resume', 'Resume permalink - resave permalinks after changing this', 'wp-job-manager-resumes' ),
    			'with_front' => false,
    			'feeds'      => false,
    			'pages'      => false,
    		];
    
  • With:
    // WPML Workaround for compsupp-7793
    		$rewrite = [
    			'slug'       => 'resume',
    			'with_front' => false,
    			'feeds'      => false,
    			'pages'      => false,
    		];
    
  • Go to "WPML > Settings", make sure that "Translate custom post and taxonomy base slugs (via WPML String Translation)." is selected.
  • On the same page, scroll down to the "Post Types Translation" section and translate Resumes slug.
  • Go to "Settings > Permalinks" and click Save Changes to refresh permalinks.

השאר מענה

אנא הישארו בנושא והיו מכבדים לאחרים. אם אתה צריך עזרה בבעיות שאינן קשורות לפוסט הזה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

תוכל להשתמש בתגים הבאים:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>