Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Andrey 7 months ago.

Assisted by: Andrey.

Author Posts
July 14, 2025 at 11:57 am #17233623

vikasS-5

Background of the issue:
I’m having an issue with the Spanish version of my website using WPML. When I translate blog posts, the URL doesn't show the /es/ language code after the domain as expected. I’ve already set the language format to use directories in WPML, but it still doesn’t work correctly.

Symptoms:
Instead of a clean URL like hidden link, it’s showing like hidden link. It looks like WPML is adding -es to the category slug instead of placing /es/ in the URL path.

Questions:
Can you please check and help fix it so that Spanish URLs follow the proper format?

July 14, 2025 at 1:46 pm #17234230

Andrey
WPML Supporter since 06/2013

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

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

Thank you for reaching out to WPML support.

You are correct; the language code should be added at the end of the domain.

Have you completed the translation for the post you are checking? Does the same issue occur if you temporarily disable all plugins except for WPML?

I have enabled debug information for this support ticket. Please follow this link for instructions on how to retrieve this information from your site and provide it to us: http://wpml.org/faq/provide-debug-information-faster-support/.

July 15, 2025 at 4:22 am #17235972

vikasS-5

This is the debug information that you asked for. please resolve and find the issue

July 15, 2025 at 3:55 pm #17238911

Andrey
WPML Supporter since 06/2013

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

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

Thank you for your feedback.

Please update your WPML plugin and add-ons to the latest version, 4.7.6, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Ensure that you update WordPress to the latest version.

If the issue persists, please let me know also:

Have you completed the translation for the post you are checking? Does the same issue occur if you temporarily disable all plugins except for WPML?

Please remember to backup your database before you proceed.