Home›Support›English Support›[Escalated to WPML Developers team] Prevent WPML from Translating Post and Taxonomy Slugs
[Escalated to WPML Developers team] Prevent WPML from Translating Post and Taxonomy Slugs
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
I'm adding Arabic as a new language to my website using WPML, but I’ve noticed that when I translate taxonomies, their slugs are automatically translated into Arabic, and /ar/ is added to the URL. When I add pages for exemple I don't have this issue
For example:
Original (French): hidden link
Translated (Arabic): hidden link
I want to keep the original slug structure and prevent WPML from translating post and taxonomy slugs. Ideally, the Arabic version should retain only the /ar/ prefix while keeping the original post or category name for example: hidden link
How can I achieve this?
Symptoms:
The slugs of taxonomies are automatically translated into Arabic when using WPML.
Questions:
How can I prevent WPML from translating taxonomy slugs while adding a new language?
Is there a way to keep the original slug structure in the translated version?
Our second-tier supporter explained that it was not designed to have the option 'Copy from original language if translation language uses encoded URLs' for taxonomies (categories.) It only works for posts and pages. However, our second-tier supporter submitted this as a feature request. Our developers will consider adding this in future versions of WPML. However, I can promise it will be added. It is up to our developers to decide. If our developers choose to add this new feature, we will update you here.
We also have a known issue where having the same slug for a taxonomy term is impossible. This is actually a WordPress limitation. We explain it in the following link.
However, you can use the suggested workaround to achieve what you need on your website, which is having the slug in French and not in Arabic.
Regards,
Itamar.
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.