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?
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:
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.