Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 6 replies, has 2 voices.

Last updated by Prosenjit Barman 6 months, 4 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
June 3, 2024 at 11:29 am #15697614

vincentW-14

Background of the issue:
We have the following page: hidden link. 'klanten-die-op-ons-vertrouwen' is the custom archive slug for a custom post type using ACF. Automatic translation is enabled but the page title + slug is not translating when switching to French. I translated the slug indeed, but it doesn't show the archive slug.

Symptoms:
The page title and slug are not translating when switching to French.

Questions:
How can I ensure the archive slug and page title are translated correctly when switching languages?
Is there a specific setting in WPML that I might be missing to translate custom archive slugs?

June 3, 2024 at 12:31 pm #15697883

vincentW-14

Thank you! Looking forward to your answer

June 4, 2024 at 8:17 am #15700118

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
I hope you're doing well.

I checked the entire conversation you had with my colleague Bruno and understood the issue.

Since you have shared the access, I checked and noticed that you have configured a custom slug for the archive. I would like to inform you about a limitation in WPML related to this setting. When the 'has_archive' or Archive slug is set to a unique value different from the default CPT slug, it cannot be translated, as translation support for the archive slug has not been implemented yet. Please check the guide below for a better understanding.

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

Therefore, translating the CPT archive slug will not be possible for now. However, the development team is aware of this limitation and is actively exploring solutions. While we are expecting to solve this limitation in the future version of WPML, I do not have any ETA for this update.

However, if you simply enable the 'Has_archive' or Archive option and leave the slug field blank, the default CPT slug will be used. In this case, you can translate that slug from the "WPML > Settings > Post Type Translation" section.

I hope you can understand. Please feel free to let me know if there is anything else you need help with. I will be happy to assist.

Best regards,
Prosenjit

June 5, 2024 at 8:18 pm #15708695

vincentW-14

Dear,

Does this mean that we also can't translate the page title?

Menubar_and_Solutions_Overzicht_-_Fast_Solutions_and_Over_‹_Fast_Solutions_—_WordPress.jpg
June 6, 2024 at 7:50 am #15709608

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi,

When translating a page or post, the page title will always appear in the translation editor, allowing you to translate it from there. According to the WPML Debug information, the translation preference for the title field is set to 'Translate'. Therefore, you shouldn't encounter any issues with translating the title.

I checked the exact page mentioned in the screenshot and found that it is an Archive page. The title of the Archive page is being handled by the Yoast SEO plugin.

The post type name appears to be translated correctly, but the text 'Overzicht' is not. To translate this, you'll need to update the SEO title information through String Translation.

Please follow these steps to translate the SEO titles:

1. Go to "WPML > String Translation".
2. From the Domain dropdown, select admin_texts_wpseo_titles.
3. Look for 'title-ptarchive-oplossing' in the list.
4. Add the translation for the strings, including the variables (% characters), by clicking the "+" icon under the French language flag.

I hope this helps. If you encounter any other issues with the page title or have any further questions, please specify them in your next response. I will check and be happy to assist you.

Best regards,
Prosenjit

June 10, 2024 at 6:37 am #15720206

vincentW-14

Regarding this, is it possible to have this custom developed by your trusted developers. Or what do you advise? I'm just checking all options before removing the custom slug, this will impact our SEO.

Archive slug is set to a unique value different from the default CPT slug, it cannot be translated, as translation support for the archive slug has not been implemented yet. Please check the guide below for a better understanding.

June 10, 2024 at 12:20 pm #15721976

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There,
Thank you for the update.

Translating the Archive slug requires several changes and additions, and it is a complex feature. While I can't guarantee that WPML contractors will be able to handle this, you can certainly discuss it with them. You can hire a developer experienced in customizing WPML from this link: https://wpml.org/contractors/

Since this feature is currently not available, I can only suggest waiting for the version that will include the support. If we find an optimal workaround in the meantime, I will inform you as well.

I hope you can understand. If you have any other questions or need clarification on any specific point, feel free to let me know. I will be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] Translate archive slug + page title for elementor template’ is closed to new replies.