This thread is resolved. Here is a description of the problem and solution.
Problem:
You are developing a site using WPML for automatic translation and facing an issue where ACF link fields on the English pages still contain links copied from the Dutch pages. Attempts to use 'Translate Link Goals' did not resolve the issue.
Solution:
We suggest you use WPML hooks to modify the URL to the current language to fix the issue.
$b_link = get_sub_field('link');
$translated_url_fix = apply_filters('wpml_permalink', $b_link['url']);
if ($b_label && $b_link) : ?>
<a class="butn butn-<?= $b_variant ?>" href="<?= $translated_url_fix ?>" target="<?= $b_link['target'] ?>">
</a>If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem continues, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
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 11 replies, has 3 voices.
Last updated by 1 year, 8 months ago.
Assisted by: Osama Mersal.