Translation and multilingual plugins
Different translation plugins use different methods for storing the translations, and these methods have varying compatibility with how Relevanssi works with the posts. Best compatibility Not compatible
Different translation plugins use different methods for storing the translations, and these methods have varying compatibility with how Relevanssi works with the posts. Best compatibility Not compatible
When a post is updated, WPML updates all the translations of the post, but Relevanssi only indexes the post that was updated, not the corresponding posts in other languages. This method hooks into save_post after WPML to tell Relevanssi also to index the matching translations. Thanks to Garrett McGilvray / Éditions CEB. There’s a similar…
Here’s a different approach to WPML searching. By default, you have two options. You can include posts in all languages in the results, or you can only use the current language. This solution checks for matches also in other languages. If Relevanssi finds any, this script then replaces them with the translated posts. You get…
…attachment are read, Relevanssi will now automatically index the parent post if the setting is enabled. 2.14.4 / 4.12.4 New feature: New action hooks relevanssi_pre_the_content and relevanssi_post_the_content fire before and after Relevanssi applies the_content filter to the post excerpts. Some Relevanssi default behaviour has been moved to these hooks so…This new version improves Relevanssi excerpt generation, making it faster especially with larger posts. Lots of small bug fixes are also included, making Relevanssi more robust. 2.14.5 / 4.12.5 (Premium) New feature: New WP CLI command wp relevanssi remove_attachment_errors clears out all attachment reading errors. Changed behaviour: relevanssi_excerpt_custom_field_content now gets……it can be modified. Changed behaviour: The relevanssi_do_not_index gets the post object as a third parameter. Minor fix: Remove errors from relevanssi_strip_all_tags() getting a null parameter. (Premium) Minor fix: Updating posts still used relevanssi_update_doc_count(), which can sometimes be really slow. (Premium) Minor fix: Corrected misleading instructions about indexing AND synonyms….
Relevanssi category exclusion setting doesn’t work properly with WPML. Here’s a bit of code from Srdjan Jocić from OnTheGoSystems that fixes it. Just add this to your theme functions.php.