Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is using WPML and wants to change the primary language of a taxonomy category from English to Dutch in the Taxonomy Translation section.
Solution:
1. Navigate to WPML >> Taxonomy Translation page.
2. Select the category where the issue is occurring.
3. Click on the “Change language” link to set Dutch as the primary language from the dropdown menu.
4. Add the English translation as needed.

If this does not resolve the issue, we recommend adding a debug report in the Debug Information box. For instructions on how to provide debug information, please visit https://wpml.org/faq/provide-debug-information-faster-support/.

If the solution provided here does not apply to your case, or if it seems outdated, please check for related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the issue persists, we highly recommend opening a new support ticket for further assistance at WPML support forum.

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 5 replies, has 0 voices.

Last updated by yilmazA-2 3 weeks, 6 days ago.

Assisted by: Noman.

Author Posts
May 18, 2025 at 2:54 am #17045005

yilmazA-2

Background of the issue:
I am using WPML and trying to translate 'programma-category' to 'program-category'. I want to change it in Taxonomy-translation > Programma Category / Programma Categories. The English language is set as primary, but I want the Dutch language to be primary.

Symptoms:
The English language is showing as primary with the category of the Dutch name.

Questions:
How can I make the Dutch language primary in the taxonomy translation?

May 18, 2025 at 3:59 pm #17045799

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Could you please try to follow the below steps and see if this resolves the issue:

1. Go to the WPML >> Taxonomy Translation page.
2. Choose the category in which you are facing this issue.
3. Click on the “Change language” link to assign the correct Dutch language from dropdown as you can see in the attached screenshot.
4. Add the English translation.

Please let me know if this resolves the issue or if you need further assistance with this issue.

If the issue persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Kindly let me know the results,
Thank you

Change language.jpg
May 19, 2025 at 1:01 am #17046262
yilmazA-2

Hi WPML Support,

We’re experiencing a serious permalink routing issue with a custom post type (programma) in a multilingual (Dutch/English) setup.

🔧 Setup details:
CPT: programma

Taxonomy: programma_category

WPML: All strings and slugs are translated

URL format: /%programma_category%/%post_name%/

✅ URLs that should work:
Dutch: hidden link

English: hidden link

The URL appears correctly in the dashboard, and the custom filter post_type_link replaces %programma_category% with the translated slug.

🚨 Problem:
When I open the correct English URL (/en/program/friday-6-june/hans-dulfer/), WPML or WordPress redirects me to a different custom post type (artiesten) that happens to have the same slug hans-dulfer.

So:

The correct URL exists

The slug is unique within the programma post type

But the frontend loads the wrong post type (artiesten), even though the post_type in the link is programma

I confirmed that the query var detection (via template_redirect) still sees:

csharp
Copy
Edit
[post_type] => artiesten
🔍 What we already did:
We have enabled "Different slugs in different languages" for programma

Custom rewrite is handled: rewrite => array( 'slug' => 'programma/%programma_category%', 'with_front' => false )

We use a custom post_type_link filter to translate %programma_category% per language

We added a fix to request filter:

add_filter('request', function($vars) {
if (isset($vars['name']) && isset($vars['post_type']) && $vars['post_type'] === 'programma') {
$vars['post_type'] = array('programma');
}
return $vars;
});

Still, the page loads a different post (from artiesten) when the slug overlaps.

❓What we need help with:
How can we force WPML/WordPress to route the correct post type, based on the full URL structure (slug + taxonomy)?

Is there any WPML setting or conflict that could cause this incorrect match by slug?

Can WPML give preference to full URL resolution over just matching slugs?

Let me know if you need a debug info report. We’re available to provide access or reproduce it.

Thanks so much in advance!

New threads created by Noman and linked to this one are listed below:

https://wpml.org/forums/topic/a-serious-permalink-routing-issue-with-a-custom-post-type/

Screenshot 2025-05-19 at 02.11.42.png
Screenshot 2025-05-19 at 02.11.30.png
May 19, 2025 at 7:25 am #17046630

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

For permalink routing problems, it’s a different issue and will be handled separately as per our support policy. I've created a new ticket for this at: https://wpml.org/forums/topic/a-serious-permalink-routing-issue-with-a-custom-post-type/

If the taxonomy language change issue is solved, please mark this ticket as resolved and we will continue working on the above ticket for it.

Thank you for your cooperation

May 19, 2025 at 1:54 pm #17048757

yilmazA-2

I am currently seeing see attached.
but looks fine now.

but on click it goes to the artist page, where it should open the program, and it is not opening the elementor editor either, where the dutch don't have that problem, neither the artists i was able to translate en deal with with the translation as i want.

The programma is a very hard one ...pfff.

as you said you made already a ticket for that one ?

if you confirm this is right i will close this ticker and follow up the other one.

cheers,
Yil.

Screenshot 2025-05-19 at 15.54.04.png
May 19, 2025 at 5:27 pm #17049901

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes, that's correct, the permalink routing issue with the programma CPT has been moved to a separate ticket here: https://wpml.org/forums/topic/a-serious-permalink-routing-issue-with-a-custom-post-type/

Feel free to close this current ticket if the taxonomy language issue is resolved. We'll continue troubleshooting the permalink issue in the new thread.

Thanks again for your patience

May 20, 2025 at 3:16 am #17050760

yilmazA-2