Skip to content Skip to sidebar

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 5 replies, has 1 voice.

Last updated by Otto 3 months ago.

Assisted by: Otto.

Author Posts
May 3, 2025 at 3:09 pm #16992012

alexJ-21

Background of the issue:
I am trying to translate the URL of a custom post type 'Kundcase' in Swedish to 'customer-cases' in English using WPML. The English translation for the 'kundcase' slug is correct in string translations, but it doesn't work. The post type is activated in the WMPL settings.

Symptoms:
The custom post type URL 'Kundcase' is not being translated to 'customer-cases' in English.

Questions:
Why isn't the custom post type URL 'Kundcase' being translated to 'customer-cases'?
How can I ensure the custom post type URL is translated correctly?

May 5, 2025 at 5:39 am #16994270

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Did you register this CPT manually? If so, can you check this?
https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/

Also, can you go to WPML -> Settings -> Post Types Translation and check if the slug is translated there as well?

May 5, 2025 at 7:22 am #16994736

alexJ-21

Hi,

No, the post type is created with Divi Machine a plugin from divi engine. The post type is checked to be translated in that setting.

May 6, 2025 at 12:49 pm #17001678

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please try the following:
- Go to WPML > String translation and delete the already translated string
- Go to WPML → Settings → Post Types Translation and set Kundcase CPT to Translatable – only show translated items.
- On the same screen, enable Slug translations and press Save.
- Click Set different slugs in different languages, fill customer‑cases for English, Save.
- Flush permalinks: Settings → Permalinks → Save.
- Test again

If this does not help, do this test:
❌ Please make a full website backup before proceeding ❌
- Temporarily disable all plugins except Divi, Divi Machine, WPML core, String Translation.
- Re‑save WPML slug settings (following the previous steps).
- If the slug works, re‑enable plugins in batches to locate conflict; typical culprits are caching or permalink manipulation plugins.

Best Regards,
Otto

May 6, 2025 at 4:55 pm #17002943

alexJ-21

Thanks the later suggestion worked, then I activated all plugins after and it still works

May 6, 2025 at 5:34 pm #17003053

Otto
WPML Supporter since 09/2015

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Great. I am closing the ticket then. If you have any other question, please open a new one.

Best Regards,
Otto