Skip Navigation

[Resolved] Bug with filtering views on the site built with Polylang

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.70 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Valeriia 6 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#593080

Hi,

There is a CPT Teacher that has a taxonomy Language (the language that the teacher speaks).

There is a View that displays these Teachers and has a filter by Language.

The site is translated with Polylang plugin.

When I try to filter the Teachers on the View, the filter starts displaying the taxonomy on another language and, consequently, does not work.

You can witness it here: hidden link (try a few times if you don't see the bug, sometimes it works, sometimes not).

I used to have a similar issue on another site where I've built a View of a taxonomy (name + link to the archive page). In the end I had to code the view from scratch myself, because the Toolset View always showed the taxonomy for another language, not the current language of the page.

That made me think that since Toolset is built to work with WPML, there must be something in the views that recognizes the multilingual nature of the site but does not receive correct information about the current language, probably expecting it in the format that WPML provides.

I'm just speculating here, but you know better. Is there anything that can be done to fix it?

Thanks.

#593284

Dear Valeriia,

Q1) filter the Teachers on the View, the filter starts displaying the taxonomy on another language and, consequently, does not work.
I tried lots of time in your website, it works fine, the filter does work. Is this problem resolved?
If you still need assistance for it, please provide detail steps to duplicate same problem.
Which term is the "the taxonomy on another language"? How do you setup it?

Q2) Is there anything that can be done to fix it?
Yes, WPML plugins are full compatible with Toolset plugins, you might consider use WPML plugins to replace Polylang plugin, there is a document about "Migrate from Polylang to WPML":
https://wpml.org/documentation/related-projects/migrate-polylang-wpml/

For your reference.

#595047

Hi Luo,

I know that WPML are compatible with Toolset but it's not what I was asking about.
And since you can't replicate it, there is nothing I can do but to rebuid the filter manually.

Closing the ticket.

Thanks.