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

問題の概要

WPMLをWP Job ManagerResume Managerアドオンと併用すると、履歴書を選択するドロップダウンリストには、現在の言語の履歴書のみではなく、すべての言語バージョンの履歴書が表示されます。

回避策

続行する前に、必ず完全なサイトバックアップを作成してください。


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

  • 85行目を探します。

  • get_user_resumes()メソッド内で、以下のスニペットを:
    $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(),
    	]
    );

  • 以下に置き換えます:
    // WPML Workaround for compsupp-7799
    $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
    	]
    );

すべての既知の問題 →