Skip Navigation

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.

This topic contains 1 reply, has 2 voices.

Last updated by Alejandro 1 year, 2 months ago.

Author Posts
September 7, 2023 at 9:44 am #14357881

Emaar

we have an requirment not to Translating Page/post/product URL Slugs
so we have selected.
WPML >Settings > Translated documents options > Page URL section, then select "Translate (this will include the slug in the translation and not create it automatically from the title)"

but it still slug was apperaing in translation.
could you please help us

slugapp.PNG
checkslug.PNG
September 8, 2023 at 10:49 am #14366019

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

If you select "Translate (this will include the slug in the translation and not create it automatically from the title)" then you're explicitly telling the system to translate it and not leave it be.

However this is the correct option for you and the only way to leave the slugs with the original language.

See, this feature is initially handled by WordPress which assigns the slug based on the title so a translated title would result in a translated slug.

If you want to leave the slug untranslated then you either need to copy the slug as-is using the option that you have selected, or switch to the other available option that will gather the slug automatically from the title, and leave the title untranslated (but in the end, the procedure is the same, you will always see something that needs to be copied in the translation editor.

--------------

The third option that you show us in the screenshot (https://wpml.org/wp-content/uploads/2023/09/14357881-checkslug.png) will only work if:

- In WPML > Languages > Edit Languages, the option "encode" column is checked
- The Language uses a different alphabet from the latin one

If the translation if from EN > AR then this option is for you, and you might only have the encode option mentioned above, unchecked.

Try that out and try to create a new page to see if this helps

NOTE: old pages won't be affected by this and you'll have to change the slug manually on the translated languages

Regards.

The topic ‘[Closed] Not to Translating Page/post/product Slugs’ is closed to new replies.