Skip to content Skip to sidebar

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

Problem:
You are trying to translate the ARCHIVE slug of a custom post type created via ACF. Specifically, you want to translate the archive URL 'industries' to 'branches'.
Solution:
We currently have a limitation with WPML in translating the ARCHIVE slug directly through the plugin settings. However, you can manually create the custom post type and then translate the slug. We recommend following our guide on translating slugs for custom post type archives, which you can find here: Translating Slugs for Custom Post Type Archives.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. You can do so 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 3 replies, has 1 voice.

Last updated by Otto 6 months ago.

Assisted by: Otto.

Author Posts
March 13, 2025 at 1:39 pm #16812182

riccardoQ-2

Background of the issue:
I'm trying to translate the ARCHIVE slug of a custom post type created via ACF. This issue was previously reported here: https://wpml.org/forums/topic/acf-archive-slug-translation/, but the response was about taxonomy, which is a different issue. I'm interested in the ARCHIVE slug, not the custom post type slug itself. My custom post type slug is 'industry', but I want the archive URL 'industries' to be translated to 'branches' as an example.

Symptoms:
No specific symptoms or errors were reported.

Questions:
How can I translate the ARCHIVE slug of a custom post type created via ACF?
Is there a way to translate the archive URL 'industries' to 'branches'?

March 14, 2025 at 9:50 am #16815576

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

I would like to inform you of a limitation with WPML concerning this setting, it is not possible to translate it. You can try to follow our guide and create custom post type manually and translate slug like that:

- https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/

Let us know how it goes.

Regards,
Drazen

March 17, 2025 at 8:15 am #16823303

riccardoQ-2

Hi Dražen. Thank you for you reply but this isn't the answer I was looking for. While you allow translating the SLUG, you don't have a setting to translate the ARCHIVE slug - that doesn't make much sense to me. Is it possible that you guys create a hot fix? I consider this quite a crucial feature. Thank you!

March 18, 2025 at 12:58 pm #16830228

Otto
WPML Supporter since 09/2015

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

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

Hi Riccardo,

Thank you for highlighting the importance of translating the archive slug for custom post types created via ACF. We understand how crucial this feature is for your project.

Currently, WPML does not support translating archive slugs directly. As Dražen mentioned, a potential workaround involves manually registering the custom post type, which allows for slug translation as detailed in our guide:
https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/

We acknowledge that this is not an ideal solution for all users. While we cannot provide a specific timeline or commit to a hotfix, we have noted your request and will consider it in our future development plans.

We appreciate your understanding and thank you for your valuable feedback.

Best Regards,
Otto