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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 19 replies, has 0 voices.

Last updated by Andreas W. 5 hours, 57 minutes ago.

Assisted by: Andreas W..

Author Posts
June 5, 2025 at 9:19 pm #17112456

nicolasG-15

Hello,

Have you fixed the problem or provided a temporary solution?

All links in translations are in 404. Including in WYSIWYG Classic editor or Gutenberg.

For information in staging website the bug doesn't appear. Bellow the versions of WordPress and plugins :

- WordPress - 6.7.2
- Advanced Custom Fields Multilingual - 2.1.4.2.
- Contact Form 7 Multilingual - 1.3.1.
- WPML Media Translation - 2.7.4.
- WPML Multilingual CMS - 4.6.13.
- WPML SEO - 2.1.0.1.
- WPML String Translation - 3.2.14.

June 5, 2025 at 9:21 pm #17112475

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Can you please confirm if updating all plugins solves this issue?

Please go to Plugins > Add new and click on the "Commercial" tab.

Click "Search for WPML Updates".

Install and activate the latest versions of our plugins.

Now, please test if you can still replicate the reported issue and let me know the results.

If not, please try to replicate the issue on the following test site in a minimal setup with WPML only:

One-Click-Login:
hidden link

If the issue will not be replicable I need admin access to the site for further investigation.

Best regards
Andreas

June 6, 2025 at 7:27 am #17113024

nicolasG-15

Hello,

It's the opposite: if everything is up to date, the issue appears.

I can't reproduce the bug but I have a test environment. How do I send accesses?

As a reminder: the issue appears in Gutenberg AND without Gutenberg in a classic editor.

It's only for the custom post type "recipe" with permalink like : hidden link.

Best regards,

June 6, 2025 at 11:17 am #17113731

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You are saying it happens when everything is up-to-date but then you are adding that you can not replicate the issue.

Do I understand right, that the issue can currently not be recreated on new content but needs to be fixed for existing content?

I can offer to take a look at this on your test site.

I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket in the private response form.

June 6, 2025 at 5:13 pm #17114737

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Could you please guide me to an example where I can see the issue?

You say it happens for links like:
hidden link.

I do not see any taxonomies declared for this CPT on your site and there are not any Recipes declared.

Please recreate the issue on your test site and send me a link to the page on which I can see the issue.

June 9, 2025 at 8:08 am #17117297

nicolasG-15

The administration is not translated for our purpose. Recipe is "Recette" in french.

You have to go in subsite administration : "Professionnels" or "Epicuriens".

Then you simply create a post (Articles) or a recipe (Recette). The label of the CPT recipe is "Recette".

I made a fake recipe for you in "Professionnels" subsite the first recipe CPT : "Recipe WPML link test" in French and the English version : Recipe WPML link test EN.

No need to check the front end part, you can create the link and update the post.

after-editing.png
before-editing.png
June 9, 2025 at 8:16 am #17117354

nicolasG-15

For the Gutenberg part, you can see the attached screenshot.

Look at the first post "Post WPML link test" and it's translation.

You can set a link with, update the post AND refresh the post (administration part). For this one you can see the result in front end part.

gutenberg-post-after-saving.png
gutenberg-post-before-save.png
June 9, 2025 at 8:20 am #17117418

nicolasG-15

I open for you the theme file editor in administration.

The recipe post type declaration : .../inc/post-types/recipe.php.

The recipe-category.php taxonomy declaration : .../inc/taxonomies/recipe-category.php

Then some modifiers for have a hierarchical permalink structure : .../inc/hooks/recipe.php line 284 to the end of the file.

June 10, 2025 at 2:24 pm #17122401

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Your recipe uses the WordPress Editor as a translation method.

In such a case, you will need to adjust this link manually on the WordPress Editor in the second language.

If you use the WPML Translation Editor as a translation method, you might experience a different behavior.

June 10, 2025 at 2:28 pm #17122404

nicolasG-15

I don't think it's normal for the link to change after saving. There must be a filter or an action in WPML that transforms it into English.

It's exactly the same problem as in the initial thread with ACFML (in the ACF fields).

With the same theme but an earlier version of WPML, there's no such problem.

June 10, 2025 at 2:53 pm #17122458

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Indeed, you are right.

This works if you use a normal post:

See test site:
hidden link

It does not work when using a custom post with a custom taxonomy.

I will be escalating to the second tier support for further revision and contact you on this ticket again, once I receive their feedback.

June 11, 2025 at 6:44 am #17124059

nicolasG-15

Thank you I remain available. I think it might be the filter wpml_translate_link_targets.

June 11, 2025 at 5:53 pm #17127513

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your feedback!

Once I have news from the Second Tier Support Team I will contact you here again.

June 17, 2025 at 2:10 pm #17142825

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The second-tier support added that on our test site running the option at WPML > Settings > Translate Link Targets solved the problem.

Could you please confirm if this is the case for you, too?

June 17, 2025 at 3:27 pm #17143150

nicolasG-15

Hi,

The display shows 1 modified link, but it's always wrong : ?recipe_category=... instead of /professionnel/en/recipes/...

And if I create a link in the english version - Post WPML link test EN - the part of the recipe post type in the URL is transformed again.

Is there any way to remove the translation of links in a given language ?