Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with incorrect URLs in the product sitemap for foreign languages, where untranslated slugs from the original language are being used instead of the translated ones.
Solution:
If you're facing similar issues with your sitemap URLs when using WPML and Rank Math, we recommend installing and enabling the WPML SEO bridge plugin. You can find detailed guidance on setting up and optimizing your multilingual website with Rank Math and WPML in our documentation: https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-websites-using-rank-math-and-wpml/
and https://rankmath.com/kb/multilingual-seo-wpml/.
After activating the plugin, you should regenerate the sitemap by going to Rank Math SEO -> Sitemap Settings. Make a minor adjustment to enable the 'Save Changes' button, click it, and then revert the change if necessary. This action should update the sitemap.

Please note that this solution might be outdated or not applicable to your specific 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.

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

Last updated by matejM-6 1 month, 1 week ago.

Assisted by: Itamar.

Author Posts
September 27, 2025 at 7:29 am #17437641

matejM-6

Background of the issue:
I am trying to correct the URLs in the product sitemap for the foreign URL. It is pulling untranslated slugs from the original language. The issue can be seen at: hidden link.

Symptoms:
Instead of the expected URL 'hidden link', I got 'hidden link'. The term 'izdelek' is from the original language instead of the translated 'produkt'.

Questions:
How can I ensure the sitemap pulls the correct translated slugs for foreign URLs?
Why is the sitemap using the original language term instead of the translated one?

September 27, 2025 at 10:04 am #17437869

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

When using WPML and Rank Math, you must also install and enable our bridge plugin WPML SEO. Please review our guide on working with the Rank Math plugin:

https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-websites-using-rank-math-and-wpml/.

hidden link

According to the debug information on your site, I can see that this plugin is not active on your site. If this is the case, could you please install and activate it, then regenerate the sitemap and see if it resolves the problem?

Regards,
Itamar.

September 29, 2025 at 3:33 pm #17441702

matejM-6

Thank you Itamar. I have installed WPML SEO.

How can I regenerate Rankmath sitemap?

September 30, 2025 at 7:02 pm #17446321

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

According to the information I got, you can do that in Rank Math SEO -> Sitemap Settings. There, you will need to make some adjustments to the settings to activate the Save Changes button. (You can make this change and then revert it.) Then, after clicking the Save Changes button, the sitemap should be updated. Please see the attached screenshot.

Regards,
Itamar.

2025-09-30_21-58-11.jpg
October 1, 2025 at 7:42 am #17447438

matejM-6

Hmmm ... I'm not sure.

Here is the video:
hidden link

Thank you in advance.

October 2, 2025 at 12:02 pm #17451946

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Thanks for sending me the video. However, I don't understand how it is related to the issue of this ticket -- RankMath sitemap malfunction. In the video, you demonstrate something related to WooCommerce orders.
Have you sent me the wrong video?
If so, please send me the relevant video.
If the RankMath siteamp issue is already fixed on your site, please mark this ticket as resolved.

Regards,
Itamar.

October 2, 2025 at 12:21 pm #17452016

matejM-6

I apologize.

Here is the video. I had 200 per page and changed to 10 twice.

Nothing happens:
hidden link

There are still products with mixed slug:
hidden link

Izdelek should be produkt in HR (Croatian)

Sitemap:
hidden link

Thank you in advance!

October 4, 2025 at 4:33 pm #17456107

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for trying my suggestions.

If you require additional assistance with this, please share the access details to your site with me. I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Also, if needed, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All-in-One Migration. Please let me know if you agree.

Regards,
Itamar.

October 8, 2025 at 6:37 am #17465829

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Matej.

I tried to replicate this issue on my test site, but was unable to reproduce it. Then I revisited your products' sitemap here: hidden link. And I can see that the problem is corrected. Products in the Croatian language show like this: hidden link, and there no wrong listing like this: hidden link. Please see the attached screenshot.

Could you please confirm that the issue is now resolved?

Thanks,
Itamar.

2025-10-08_09-30-51.jpg
October 8, 2025 at 1:12 pm #17467359

matejM-6

Thank you it was resolved by changing sitemap number per page or WPML SEO plugin.