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:
Problem: The client's website is set up with English pages and Spanish translations under the '/es/' URL prefix. However, WPML is adding an extra language code suffix to the URLs of taxonomy archive pages, resulting in URLs like 'https://uncorkmexico.com/es/tienda/varietal/nebbiolo-es/' instead of the expected 'https://uncorkmexico.com/es/tienda/varietal/nebbiolo/'.
Solution: If you're experiencing this issue, we recommend you try the following steps: 1. Navigate to WPML > Taxonomy Translation. 2. Use the dropdown menu to select the Taxonomy that contains the Category. 3. Locate and edit the Spanish translation of the "Nebbiolo" taxonomy. 4. In the editing popup, you will find a field labeled 'slug'. Remove any extra parts from the slug and save your changes.