On the /resumes/ search page using advanced search widget, with resumes created in English but duplicated to another language.
The results in the other language (WPML duplicate resumes), show zero results for "Job location" and "Job category".
On the primary language search results are fine.
It seems the ID is not being converted by WPML as job location and job category are not being used as true taxonomies for resumes.
12 is the duplicated id and gives no results because the DB has the original id in both languages. i.e. 8.
After much debugging I found the solution.
The WPML duplicate action in JM saved the duplicate job_location and job_category without quotes ("271" -> 271). This caused the search to fail in the duplicate language because the query searches for quotes ("271").
Fix - force (String)
$tax_values[$index] = (String) apply_filters( 'wpml_object_id', $v, $tax_name, true, $lang );
Thanks for your feedback.
That's great! Our developers haven't found the solution yet. Your answer is very helpful for other customers.
Thanks so much.
You must be logged in and have valid license to reply to this topic.