This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with the Spanish version of your website where the URL doesn't show the /es/ language code after the domain as expected, and instead adds '-es' to the category slug, we can help.
Solution:
First, ensure that your WPML plugin and all related add-ons are updated to the latest version, which is currently 4.7.6. This update includes bug fixes and improvements that might resolve your issue. You can find the latest versions under My Account -> Downloads on the WPML site.
Next, check for updates in the Plugins → Add New Plugin → Commercial tab by clicking the Check for updates button. Also, make sure that WordPress is updated to its latest version.
After updating, if the problem still occurs, check whether the translation for the post is complete. Also, try disabling all other plugins except for WPML to see if there is a conflict causing the issue.
Remember to backup your database before making these changes.
If this solution does not apply because it's outdated or not suitable for your 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.