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.

This topic contains 2 replies, has 1 voice.

Last updated by Dražen 1 month ago.

Author Posts
January 20, 2025 at 11:57 am #16613048

tomv-24

Background of the issue:
I am trying to use an ACF field with a WYSIWYG editor on my site hidden link. In the content, I have a link that should redirect to a different post. I am using get_field as per the documentation at hidden link.

Symptoms:
Link using get_field not translating to other language URL.

Questions:
Why is the link not translating to the other language URL?
How can I ensure the link redirects correctly in different languages?

January 20, 2025 at 12:01 pm #16613055

tomv-24

I tried to disable all plugins on a staging site but the issue still persists. I am using a custom vc_block where I use ACF to get a field using get_field('aanbieding')

January 21, 2025 at 8:56 am #16616838

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

We have a similar issue with nested fields and ACF blocks, that should be fixed in the next version of ACFML, while you wait can you please try using wpml_permalink hook as explained here:

https://wpml.org/forums/topic/links-from-acf-link-type-of-fields-do-not-get-automatically-adjusted-according-to-the-respective-lan/#post-16153883

Let us know how it goes.

Regards,
Drazen

The topic ‘[Closed] Link using get_field not translating to other language url’ is closed to new replies.