This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where certain category labels in the dropdown from the [tutor_filter_bar] shortcode are not translating, even though they appear translated in WPML's String Translation, and if clicking on a category in a non-English version redirects to the English version, the issue might be with how the strings are handled in your custom code.
Solution:
First, confirm whether the shortcode has been customized or if there are any theme overrides or custom snippets involved. The issue might stem from hardcoded labels in your functions.php file, which WPML can detect but not properly translate on the frontend. To resolve this, update your code to correctly register and translate the strings using WPML functions. Use
wpml_register_single_string
to register the strings and
wpml_translate_single_string
for translation. This adjustment should ensure that the translations display correctly and that the category links lead to the correct language version.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, please open a new support ticket at WPML support forum.
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 is split from https://wpml.org/forums/topic/split-3lines-hamburger-in-the-main-nav-menu-is-still-in-english/
This topic contains 47 replies, has 1 voice.
Last updated by 3 weeks, 4 days ago.
Assisted by: Paola Mendiburu.

