This thread is resolved. Here is a description of the problem and solution.
Problem:
You have a custom post type "industries" with translations in multiple languages. When accessing the language switcher on the UK (default) page, the URLs display correctly. However, for the Australian version and other languages, the URLs for Denmark and UK do not update correctly after changing the custom permalink for Australia's "construction" industry page. This issue is specific to your industry custom post type (CPT).
Solution:
1. Confirm that the 'industries' post type is set to "Translatable – only show translated items" in WPML settings.
2. Check and update translated slugs for all relevant languages.
3. Flush permalinks multiple times after updating settings.
4. Review the 'industries' custom post type registration code, specifically the `has_archive` and `rewrite['slug']` settings in your theme or plugin.
5. Inspect for any filters or actions in your theme or mu-plugins that might impact the language switcher or permalink logic for CPTs.
If these steps do not resolve the issue, or if the solution seems outdated or irrelevant to your case, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
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 0 replies, has 0 voices.
Last updated by 3 weeks, 6 days ago.
Assisted by: Paola Mendiburu.