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)

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Andreas W. 4 days, 19 hours ago.

Assisted by: Andreas W..

Author Posts
June 26, 2025 at 1:14 pm #17173639

roccoM

Background of the issue:
I set up the default WP post to use WYSIWYG fields within a flexible content container to display custom text, which may eventually contain some inner URLs. I want to handle all URLs in all languages by myself. The issue can be seen on this page: hidden link

I tried editing the translantion in the actual translation editor, in the old translation editor and even in the wordpress editor.

Symptoms:
The hrefs are not the same as I insert and are overwritten by the ?p=ID query referring to the main language post.

Questions:
How can I ensure that the hrefs reflect what I insert in the translation?
Why are the hrefs being overwritten by the ?p=ID query?

June 26, 2025 at 8:55 pm #17175268

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

The "?p=ID" at the end of the URL in WordPress usually means that the content you are linking to is not yet published and still saved as a draft.

Could this be the reason?

If you publish the pages, you can use WPML > Settings > Translate Link Targets to adjust any internal links.

As an alternative, publish the pages and update the translation of the page with the WPML Translation Editor.

IMPORTANT
It seems the minimum requirements on the server are not met:
https://wpml.org/en/home/minimum-requirements/

Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires at least 128 MB.
Your current values ​​are:

PHP Memory Limit 512 MB
WP Memory Limit 40 MB

To do this, you need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.

Add this code to the wp-config.php file to increase WordPress's memory:

define ('WP_MEMORY_LIMIT', '256M');

Add this just before this comment:

// That's all, stop editing! Happy blogging.

The current values ​​can be viewed under WPML > Support > WordPress.

These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.

Best regards
Andreas

June 27, 2025 at 8:37 am #17176463

roccoM

Hallo Andreas, ty for answering, I'll try to break your answer.

1. No, referred posts are published and correctly translated, you can reach one of them yoursel via the referred page an check the translation using the language switch in the footer.

2. I already checked the sticky links thing. Nothing changes.

3. As in the opener (also see attachments) I tried several methods. Nothing changes.

4. While creating this thread the submit system already suggested me to increase the wp memory, which i did. Again, no changes.

You are missing the point tho.

As stressed in provided screenshots I'm able to insert correct values and they are correctly stored in the DB (new attach here...).

Then, when the ACF value is fetched via get_field() the expected string is not there.

I'm able to put an outer link in there (say google...) but if i leave it untouched (which I expect should result in the automatic translation....) or i force it myself to use the correct translation URL then the link breaks.

Screenshot 2025-06-27 at 10.28.19.jpg
June 27, 2025 at 1:54 pm #17177693

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

I would like to offer to take a closer look and 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 using the private response form.

Best regards,
Andreas

July 2, 2025 at 5:47 am #17190735

Andreas W.
WPML Supporter since 12/2018

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

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

Did you make sure before deactivating and deleting the plugin to click the option "Revert sticky URLs to permalinks"?

If you did not use the option before deleting WPML Sticky Links then please install the addon again and run this option at WPML > Stricky Links.

If this will not solve the issue, then this might be a conflict between WPML and another plugin. As there are currently 20 plugin updates available, I would like to ask you to run all the updates and let me know in case this will not solve the issue.

July 2, 2025 at 6:03 pm #17194501

roccoM

WPML Sticky Links was never (and i mean never...) installed.

So, I installed it and did several clean/toggle attempts. No change.

Then I disabled all unnecessary plugin. Theme, wpml and acf related i had to keep active, since they are required for what I'm trying to achieve. I also disabled WPML Sticky Links.

At this point the "automatic" translation for URIs (is this really a thing or is it just in my mind?) is still not working, but now correct permalinks are used. And I can actually unlock the URIs and manually insert the translation links I need.

So I started enabling unupdated plugins, one at a time, still excluding WPML Sticky Links. Guess what, it's still working.

So, at least for now, I'm calling it solved and keeping an eye on it.

Thanks for the support anyway. 😉

July 3, 2025 at 3:12 am #17195156

Andreas W.
WPML Supporter since 12/2018

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

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

Very odd, I actually only mentioned WPML Sticky Links as you said earlier, "I already checked the sticky links thing."

If the issue is solved for now, then great. Just in case the issue occurs again, please let me know.