Some of the translated pages are product titles, so they are the same name as the English version. Currently the translated version is appending "-2", which I know is normal for WordPress so that there are no duplicate slugs.
What we hope to achieve is this.
English version slug hidden link
German version slug hidden link
However, the slugs for the translated version rename to: hidden link
while you wait for my colleague to take over, I will provide a reply to try and help.
Yes, this is a restriction from WP, and you can change the page slug in 2nd language manually, by editing it for example using quick action from Pages > All. But please note as this is not expected and recommended, it may cause issues with the server / WP and open the default language page instead of translated or similar.
Please test it and make sure it works fine for you.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
"it gives an error when using the same slug title."
what kind of error are you getting, can you send a screenshot? Because it should work without errors, so editing the slug in the translated version of the product.
I have deleted the slug completely and saved allowing for the slug to be auto-generated. The generated slug is what I expect yet still get the 404 error.
When I appended the slug, in this case, with "-2", the page loads.
I am doing this in the translated version.
In my example:
English (original) version
website/iview-for-sap/
German (translated) version
Desired slug
website/de/iview-for-sap/ (get a 404 error)
website/de/iview-for-sap-2/ (page loads fine)
An observation here, if I now visit website/de/iview-for-sap/ it redirects me to website/de/iview-for-sap-2/. Is the redirect being processed by the translation plugin? We have no redirects setup.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Can you tell me if this happens only for "iview-for-sap" or for any other product on the website?
If so, can you test if this works (same slugs) if only WPML is activated and whatever you are using to create the product post type (because I see that you're not using WooCommerce - according to debug info - I assume that you created this with Toolset Types)?
The topic ‘[Closed] using the same slug title in translated version’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.