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?
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')
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:
The topic ‘[Closed] Link using get_field not translating to other language url’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.