Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 47 replies, has 1 voice.

Last updated by Paola Mendiburu 1 month, 3 weeks ago.

Assisted by: Paola Mendiburu.

Author Posts
May 16, 2026 at 4:37 pm #18040503

sonishA

Thank you so much

Your team helped me with the code for header too and its working fine

I copied their code and edited it to use for footer so it works fine for footer also

As for header and footer String translations were not working

May 17, 2026 at 7:18 pm #18041345

sonishA

All my issues are resolved

Thank you so much

Please let me know 1 thing
So I need to update the templates I translated randomly?

Because after a week they don't open in elementor so I open them in default wordpress editor, update them and then they open in elementor

Secondly hostinger is saying that WPML is very heavy plugin which is affecting the website speed

How can I optimize your plugin?

May 18, 2026 at 7:50 am #18041810

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

Yes, if you are translating the content manually, you can continue working that way without any problem.

Regarding WPML optimization, you can optimize the database by following this documentation:
https://wpml.org/documentation/support/wpml-tables/optimizing-wpml-database-tables/

Since the issues reported in this ticket are now solved, you can mark the ticket as resolved. If you encounter any new issue in the future, please feel free to open a new ticket and we’ll be happy to help.