Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 2 replies, has 1 voice.

Last updated by Itamar 8 months ago.

Assisted by: Itamar.

Author Posts
August 23, 2025 at 2:23 am #17341584

maxw-14

Background of the issue:
I am using WPML for my WordPress site, hidden link. I previously used TranslatePress and have some questions about URL translation behavior in WPML. Specifically, I want to know how WPML handles URL translations for products and product categories.

Symptoms:
When using WPML, I noticed that the translated product links include an extra language code at the end, like (xxx.com/product/de/short-123-de/), instead of the desired format (xxx.com/product/de/short-123/).

Questions:
Hello, this plugin is very good.
However, since I was using TranslatePress before, I have a few questions that I would like to confirm with you.

1. For example, The original product links on my website were
(xxx.com/product/short123/)
After I finish the German translation, can this link be changed to
(xxx.com/product/de/short123/)
Because when I used WPML, I found that it would translate it like this
(xxx.com/product/de/short123-de/)

2. For another example, The original product categories link is:
(xxx.com/product-category/slippers/)
After I finish the German translation, can this link be changed to
(xxx.com/product-category/de/slippers/)
Can I display it using WPML?

August 23, 2025 at 3:32 am #17341592
maxw-14

3. I just encountered a new problem. After I finished translating one page, the map of the website didn't show this page.

url: hidden link

(hidden link) show 15 links
(hidden link) should be 18 links.

For example, I have already finished translating "about" page into German,
(hidden link) However, the sitemap still shows that the "About" page has only one English version.

4. The hreflang in the XML sitemap seems to be incorrect. I modified the code according to the documentation and also changed hreflang to de-DE in WPML, but it still didn't work.

(hidden link) Added the code
(hidden link) Modified the hreflang settings in WPML and changed it to de-DE.

(111.png) de-DE no show

New threads created by Itamar and linked to this one are listed below:

https://wpml.org/forums/topic/split-hreflang-and-missing-pages-issues-in-sitemaps/

111.png
August 24, 2025 at 12:31 pm #17343122

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

Are you using WooCommerce on your site?
If so, please ensure to follow our guide on working with WPML and WooCommerce: https://wpml.org/documentation/related-projects/woocommerce-multilingual/.

Your German translated products should not show the URL in this format: xxx.com/product/de/short123-de/. It should be xxx.com/de/produkt/short123-de/. The language folder /de/ should be right after the main domain. And usually /product/ translated into German /produkt/. But this is not a must. The language code -de should not, by default, be at the end of the product name, such as/short123-de/. However, without having all the details, it is hard for me to say why it happens on your site.

Please share your site's Debug information if you need further help with this issue. You can read about it here: http://wpml.org/faq/provide-debug-information-faster-support/.

In our forum, we try to keep one issue per ticket. Therefore, I've split the other ticket and created a new ticket with this issue. Please see the new ticket here: https://wpml.org/forums/topic/split-hreflang-and-missing-pages-issues-in-sitemaps/.

Regards,
Itamar.

The topic ‘[Closed] about fs code’ is closed to new replies.