This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where the WPML language switcher does not change the language on category or sub-category pages, and it defaults to English despite having translations set up, the issue might be with your custom code.
Solution:
We found that the 'Product Category Archive Description' snippet is overwriting WPML's permalink rules for categories, which causes the language switcher to malfunction. To resolve this, you can try deactivating the snippet to see if the language switcher then works as expected. If you need the functionality provided by the snippet, consider rewriting it to comply with WPML's multilingual requirements. You can find the necessary guidelines and hooks on our documentation pages:
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 1 replies, has 0 voices.
Last updated by 2 months ago.
Assisted by: Lucas Vidal de Andrade.