Polylang Relevanssi
-
Hi Mikko,
I’m using polylang in combinaison with Relevanssi (search plugin).
On default language (FR), Polylang permalink is set up to return the homepage url without the language directory. So, as I search in default language : the url return http:\\my-website\?s=mysearch and the result are shown.
When I search in another language than the default one (for example english) : the url http:\\my-website\en\?s=mysearch return no result.
Because \en\ is added, the search form failed.If I set up the language directory to show in permalink even for the default language, the url http:\\my-website\fr\?s=mysearch return no result.
If I change the polylang parameter “url modification” : no changes
If I change the permalink from “postname” to “default” : no changes
If I change the revelanssi option “Limit results to current language” from yes to no : no changesIf I desactivate Revelanssi, default wp search works in both language.
If I desactivate Polylang, Revelanssi works.I’ve been searching the polylang support, the revelanssi support, the web, for days now. All I can find is old conversation for more than 1 year telling “the problem is fixed”. Apparently, not…
So what can I do to make this two wonderfull plugin works together ?
Seems that is “just” a permalink problem…My configuration :
WP 4.2.2, homepage is a static page
Polylang v 1.7.6
– with 2 languages FR/NL, FR is default one,
– “url modification” = “directory name in permalink” -> http:\\my-website\en\
– default language returns the homepage permalink without language directory
Relevanssi Version 3.4.2
– default settings
– Limit results to current language: yes (but if I change this, the problem is the same)The search form is called in the header.php with
<?php get_search_form();?>
and the result are shown via search.php.
- The topic ‘Polylang Relevanssi’ is closed to new replies.