Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You have created a custom post type (CPT) with the slug 'event' using the ACF Pro plugin and defined a custom archive slug 'events'. You have translated the base default slug 'event' to 'événement' in French via WPML > Settings > Post Types Translation, but you are unable to find where to translate the archive slug.
Solution:
Currently, WPML does not support the translation of custom slugs set in the

has_archive

option for custom post types. You can read more about this limitation here. We recommend enabling the archive option and leaving the slug field empty for custom post types created with ACF. This approach uses the default slug, and when you switch languages, the translated slug set in "WPML > Settings > Post Type Translation" will display.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.

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 Prosenjit Barman 1 week, 3 days ago.

Assisted by: Prosenjit Barman.

Author Posts
November 4, 2024 at 10:39 am #16360223

lidijaH

Background of the issue:
With the ACF Pro plugin, I created a CPT with the slug 'event' and defined a custom archive slug 'events'. I translated the base default slug 'event' to 'événement' in French via WPML > Settings > Post Types Translation. I am trying to translate the archive slug.

Symptoms:
I do not see where I can translate the archive slug.

Questions:
Am I reading the below-listed docs right, and it is not possible to translate the archive slug at the moment?
Where do I update CPT archive link?

November 5, 2024 at 5:58 am #16364083

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thanks for contacting WPML Support!

I understand what you're looking for. Please note that there’s a known limitation in WPML regarding custom slugs added in has_archive or Archive. You can read more about it here: https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/.

Currently, if a custom slug is set there, it’s not possible to translate it. However, our team is working on this feature, and we hope that the option to translate the archive slug will be available in a future WPML update.

In the meantime, we recommend enabling the archive option and leaving the slug field empty for custom post types created with ACF. This way, the default slug will be used, and when you switch languages, the translated slug set in "WPML > Settings > Post Type Translation" will display.

I hope you can understand. Feel free to let me know if there’s anything else I can help you with! I'll be happy to help.

Best regards,
Prosenjit

November 5, 2024 at 11:06 am #16365759

lidijaH

Thanks for your assistance. I am looking forward to the future WPML update with this problem resolved.