Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are working on a site under development and trying to implement a taxonomy page language switcher using WPML. The taxonomy is translatable, and you have translated the taxonomy title. However, the language switcher does not change the language when clicked; it just reloads the page without changing the language indicator.
Solution:
We activated the WordPress default theme on your site, which resolved the issue. It appears that in your theme, there is a modification converting the taxonomy URL, which causes the language switcher to malfunction. We recommend checking if your theme has any URL rewriting or redirections that might affect the WPML language switcher functionality.

If this solution does not apply because it might be outdated or not relevant 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 issues persist, please open a new support ticket at WPML support forum for further assistance.

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 15 replies, has 0 voices.

Last updated by Osama Mersal 1 month, 1 week ago.

Assisted by: Osama Mersal.

Author Posts
April 5, 2025 at 1:04 pm #16899862

houryP

Background of the issue:
I am working on a site under development and trying to implement a taxonomy page language switcher using WPML. The taxonomy is set to be translatable, and I have translated the taxonomy title. The language switcher URLs are: hidden link and hidden link. However, manually changing the URL to hidden link opens the translated version.

Symptoms:
The taxonomy page language switcher does not change the language when I click on a different language; it just reloads the page without changing the language indicator.

Questions:
Why doesn't the taxonomy page language switcher change the language when clicked?
Shouldn't the language indicator change when I use the language switcher?

April 7, 2025 at 11:20 am #16903840

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

1) Please elaborate on the issue to help me understand it better.

Sharing screenshots or a screen-recorded video while reproducing the issue would be very helpful.

2) Could you please check if the issue persists in a minimal environment by following these steps?

1- Deactivate all the plugins except WPML CMS and String Translation.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please back up your database before the above test ❌

Best regards,
Osama

April 8, 2025 at 1:34 am #16906585

houryP

Hi there,
this upload button doesn't let let to upload a video, how can i share the video with you?

April 8, 2025 at 9:42 am #16908147

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please upload the video to a file transfer service, such as Google Drive, and share the URL with me.

Best regards,
Osama

April 9, 2025 at 7:16 am #16911639

houryP

Sure,

hidden link

April 9, 2025 at 10:00 am #16912382

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the video. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

April 9, 2025 at 1:19 pm #16914063

houryP

Okay now i only have my website on my local I'll move it to staging, once i do that I'll share the access with you.

Thanks

April 9, 2025 at 2:39 pm #16914487

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Sure, please take your time.

Best regards,
Osama

April 21, 2025 at 7:17 am #16950838

houryP

Hi there's,
I got my site to live, can you please send what was needed for you to gain access?

April 22, 2025 at 5:56 am #16953035

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

May 5, 2025 at 12:08 pm #16996061

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. This taxonomy is created by the "Media Library Assistant" plugin, so that might be a compatibility issue.

Please log in to this hidden link">sandbox site and create a test taxonomy and translate it to replicate the issue.

Please let me know if the issue is replicable so I can check it and consult our compatibility team.

Kindly note that the sandbox site has WPML and "Media Library Assistant" installed.

Best regards,
Osama

May 6, 2025 at 3:36 am #16998950

houryP

So i created some taxonomies in the "Media Library Assistant" plugin and translated them. is that good for you to test?

May 6, 2025 at 5:11 am #16999015

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for creating the terms. I tried to reproduce the issue, but I couldn't. Please check the term on the front end and switch the language. (hidden link)

So, I activated the WordPress default theme on your site, which fixed the issue. Please check this page. (hidden link)

In your theme, there is something that converts the taxonomy URL from (hidden link) to (hidden link), which causes the issue.

Best regards,
Osama

May 7, 2025 at 1:31 am #17004028

houryP

So what do you think is the causing issue in the theme?

May 7, 2025 at 1:48 am #17004032

houryP

I found the code part that's causing that issue)