- 状态
- 等待作者
- 相关插件/主题
- WP Job Manager
- 主题标签
- Compatibility
问题概述
当将 WPML 与 WP Job Manager 的 Applications 附加组件配合使用时,在申请中,下拉列表里的简历会显示所有语言,而不是当前所选的语言。
临时解决方法
在继续操作之前,请确保对您的站点进行完整的站点备份。
- 打开 …/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 ] );