Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by helenD-12 3 weeks, 6 days ago.

Assisted by: Paola Mendiburu.

Author Posts
April 13, 2026 at 10:23 am

helenD-12

I have recently created a custom post type "industries".
These industry pages have been translated to australian, new zealand, america, canada, denmark.

When you access the language switcher on the UK (default) page, the published posts display the correct urls: hidden link

When you visit the australian version, for example, the published posts' urls are all australian apart from Denmark and UK: hidden link

I changed the custom permalink for australia's "construction" industry page - this cause the permalink to appear as expected in the language switcher. This issue is only present for our industry CPT.

April 13, 2026 at 1:36 pm #17966380

helenD-12

I was able to modify the url which the custom language switcher displays.