WPML
ステータス
開発者からの返答待ち
関連するプラグイン/テーマ
WP Job Manager
トピックタグ
Compatibility

問題の概要

WPMLをWP Job ManagerApplicationsアドオンと併用すると、応募画面のドロップダウンに、履歴書が現在選択されている言語ではなく、すべての言語で表示されます。

回避策

手順を進める前に、必ずお使いのサイトの完全なバックアップを取得してください。


  • …/wp-content/plugins/wp-job-manager-applications/includes/class-wp-job-manager-applications-apply.phpファイルを開きます。

  • 250行目を探します。

  • 以下のコードを:
    $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(),
        ]
    );

  • 次のように置き換えます:
    // 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
        ]
    );

すべての既知の問題 →