Skip Navigation

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

Problem:
The client is experiencing issues with translating the slugs for a Custom Post Type (CPT) archive page using the WPML plugin.
Solution:
We have identified a limitation within WPML where the slug of the archive can only be translated if it is the same as the slug for single posts. To make the archive slug translatable, it must match the 'rewrite['slug']' or the custom post type name slug. For more detailed information, please refer to our documentation on translating slugs for custom post type archives.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket for personalized assistance. Additionally, we highly suggest checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 3 months ago.

Assisted by: Carlos Rojas.

Author Posts
February 16, 2024 at 11:20 am #15311233

LukaszK-36

Archive slug

February 16, 2024 at 12:46 pm #15311666

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

This is the forum ticket where we will continue working. I will get back to you as soon as I get an answer from my colleagues.

Regards,
Carlos

February 16, 2024 at 12:59 pm #15311698

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

I just double-checked with my colleagues and unfortunately, there is a limitation in WPML where the slug of the archive can only be translatable if it's equal to the slug for single posts.

"WPML allows has_archive to be set to a string. However, if the string value is set to something other than rewrite['slug'], or the custom post type name slug is not set, the archive slug will not be translatable.": https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/

Regards,
Carlos