Skip to content Skip to sidebar

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

Problem:
You are trying to translate the product category base from English to Spanish using WPML on your WordPress site. When switching languages, the URL does not translate correctly, leading to a 404 error.
Solution:

Please check this known issue: https://wpml.org/errata/product-category-links-do-not-use-translated-slugs/

For further assistance, please visit our support forum 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.

This topic contains 3 replies, has 0 voices.

Last updated by Andrey 1 month ago.

Assisted by: Andrey.

Author Posts
July 7, 2025 at 4:59 pm #17210464

vanusap

Background of the issue:
I am trying to translate the product category base from English (our products) to Spanish (nuestros productos) on my WordPress site using WPML. When I navigate from English to Spanish, the URL doesn't translate correctly. The issue can be seen on this page: hidden link. I expected the URL to change to hidden link when switching to Spanish.

Symptoms:
Instead of the expected URL, it goes to hidden link and results in a 404 error. This issue occurs for all pages with that product base in the URL.

Questions:
Why is the product category base not translating correctly in the URL?
How can I fix the 404 error when switching languages?

July 7, 2025 at 6:43 pm #17210935

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Please try the following steps:

1. Go to WPML → String Translation

2. Search for the product category base "our products"

3. Delete it from String Translation

4. Go to Settings → Permalinks

5. Re-save the page

6. Go to WooCommerce → WooCommerce Multilingual and re-translate the product category

Please backup your database before making any changes.

July 9, 2025 at 3:21 pm #17220121

vanusap

I followed the instructions, but it didn't work.

Results after I deleted the string translation and saved the permalinks:

1 - all the product category and subcategory pages using the category base slug "nuestros-productos" are a 404 error

2 - all the Spanish product category URLs were updated to "our-products" slug as product category base

Next steps: I went to woocommerce multilingual and multicurrency tab and tried to save the translation again.

I hit the + button by product category base, typed in "nuestros-productos" and hit save. But it doesn't save, once I refresh the page it goes back to a blank and shows as untranslated (+ sign instead of the pencil). I tried clearing cache and saving again, saving permalinks and saving it again but it always goes back to blank/untranslated.

Screenshot 2025-07-09 at 9.06.29.png
Screenshot 2025-07-09 at 9.05.33.png
July 10, 2025 at 3:14 pm #17224678

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.