Ce fil est résolu. Voici une description du problème et la solution proposée.
Problem:
The user needed to change the slug of an archive page from "autoclave-comparator" to "comparador-de-autoclaves" and later wanted to translate this slug into multiple languages using WPML. However, she faced difficulties in finding the setting to change the slug and translating it for different language versions. Solution:
We instructed them to change the slug by editing the custom post type in Toolset under the Rewrite settings. Later, when they wanted to translate the archive slug for different languages, we explained that WPML only allows the archive slug to be translatable if it matches the 'rewrite['slug']' or the custom post type name slug. This means the archive slug must be the same as the slug for single posts or the post type name for it to be translatable in WPML. Relevant Documentation: https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/
This support ticket is created Il y a 2 years, 1 month. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
9:00 – 12:00
9:00 – 12:00
9:00 – 12:00
9:00 – 12:00
9:00 – 12:00
-
-
13:00 – 18:00
13:00 – 18:00
13:00 – 18:00
13:00 – 18:00
13:00 – 18:00
-
Fuseau horaire du supporter : America/Sao_Paulo (GMT-03:00)
The slug of this archive page lien caché has been changed by mistake to "autoclave-comparator" when it should be "comparador-de-autoclaves".
The problem is that I cannot find where the slug can be changed. 3 months ago I had been answered the same question (https://toolset.com/forums/topic/how-to-change-page-archive-slug/) and I had found the answer easy, whereas now I don't seem to understand it...
thank you for your reply. I am afraid your suggestion it's not what I am looking for, as I am not trying to translate de CPT slug, but the CPT archive slug...
thank you for your reply. I am afraid your suggestion it's not what I am looking for, as I am not trying to translate de CPT slug, but the CPT archive slug...
See the attached screenshots: I am not trying to translate "modelos" but "comparador-de-autoclaves"...
I'm sorry for the confusion and thank you for sharing even more information.
I just double-checked with my colleagues and I'm afraid that 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. Similarly to what you mentioned in one of your messages.