- Status
- Warten auf Autor
- Zugehöriges Plugin/Theme
- WP Job Manager
- Themen-Tags
- Compatibility
Übersicht über das Problem
Wenn WPML mit dem Applications-Add-on von WP Job Manager verwendet wird, erscheint der Lebenslauf in der Bewerbung im Dropdown in allen Sprachen statt in der aktuell ausgewählten Sprache.
Problemumgehung
Bitte stellen Sie sicher, dass Sie über ein vollständiges Backup Ihrer Website verfügen, bevor Sie fortfahren.
- Öffnen Sie die Datei …/wp-content/plugins/wp-job-manager-applications/includes/class-wp-job-manager-applications-apply.php.
- Suchen Sie nach Zeile 250.
- Ersetzen Sie:
$args = apply_filters( 'resume_manager_get_application_form_resumes_args', [ 'post_type' => 'resume', 'post_status' => [ 'publish' ], 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id(), ] ); - durch:
// WPML Workaround for compsupp-7819 $args = apply_filters( 'resume_manager_get_application_form_resumes_args', [ 'post_type' => 'resume', 'post_status' => [ 'publish' ], 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id(), 'suppress_filters' => false, // add this line ] );