Duplicate Results w/ WPML
-
Hey,
we found that using Relevanssi + WPML would give us duplicate results (not mixed up results, just plain duplicates on the result list).
So after investigating a bit, we solved it for us by uncommenting this part in function “relevanssi_wpml_filter” in common.php:
if (function_exists('icl_object_id') && function_exists('pll_is_translated_post_type')) { if (pll_is_translated_post_type($hit->post_type)) { if ($hit->ID == icl_object_id($hit->ID, $hit->post_type,false,ICL_LANGUAGE_CODE)) $filtered_hits[] = $hit; } }
seems like the condition is true for both WPML and Polylang as well.
Would be nice if you could address this issue in one of your next update.
regards,
daniel
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Duplicate Results w/ WPML’ is closed to new replies.