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?
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.
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.
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.
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.
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.