- This topic has 3 replies, 2 voices, and was last updated 5 years, 12 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Not working with Polylang – language switcher URLs incorrect
The filter works fine on the blog page in all languages however using the language switcher returns a page with the correct language and filter but no results, even when I try without the category parameter
With no slug set for the filters, and the ‘blog’ category selected, the language URLs are:
/fr/?sfid=1578&_sft_category=blog
/de/?sfid=1578&_sft_category=blog
With a ‘media’ slug set for the filter in all languages, and the ‘blog’ category selected, the language switcher URLs are:
/fr/media/?_sft_category=blog
/de/media/?_sft_category=blog
I also tried with a different slug set for the filter in each language.
The language URLs should be simply links to the blog in the other languages:
/fr/presse/
/de/medien/
The language switcher is included on the page using the standard Polylang function pll_the_languages()
I have tried to override the post_id value when is_archive() is true, but it doesn’t work even though I have selected ‘Force is_archive to always be true?’ in the filter