Skip to content Skip to sidebar

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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Noman 1 year, 7 months ago.

Assisted by: Noman.

Author Posts
September 15, 2024 at 12:07 pm #16179930

Lukas

Background of the issue:
We have a repeater field with links inside (ACF Pro) which all fields are set to "Translate". We have three languages/regions (CH, DE, and EN). Two of them (CH + DE) are very similar and the DE version gets duplicated from the CH version. Here's a loom video: hidden link. Link to a page where the issue can be seen: hidden link

Symptoms:
When we duplicate to DE and sync, it gets displayed with the correct link, but the wrong label: - Services (links to /de/services) - Produkte (links to /de/produkte)

Questions:
Why are the labels incorrect when duplicating and syncing from CH to DE?

September 15, 2024 at 12:27 pm #16179956

Noman

Hi,

To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you

September 15, 2024 at 5:30 pm #16180491

Noman

Thanks for sharing the login details. I can confirm that this is expected behavior with the ACF Relational Link field. When duplicating a page into a secondary language, the system checks the link. If it detects an internal link and the translated page exists, it automatically adjusts the label and title to match the secondary language page.

However, if a translated version of the linked page is not available, it simply copies the label and URL from the default language (CH) field.

Let me know if you need further assistance with this!

Thank you

September 15, 2024 at 5:40 pm #16180544

Lukas

I'm not sure if I understand this correctly.
The page we duplicated is translated and exists - so do most of the pages, but we don't have that issue on other pages? The pages we link to also exists and are translated.

Why, if the page is duplicated is not duplicating the link we've set on the CH page, if the duplication process changes links, it's not a real duplication of content. It then has kind of a brain of itself, so we're never sure what label it uses.

How can we change this behaviour?

September 16, 2024 at 5:16 pm #16185092

Noman

I apologize for any confusion regarding the ACF Relational Link field behavior. To clarify, when a linked page has a translation available, the system automatically updates the link's label and URL on the duplicated page to match the translated linked page title and URL. However, if an external URL is used or the linked page translation doesn’t exist at the time of duplication, the label and URL will remain as they were on the original page.

To confirm this behavior, I tested it on a fresh WordPress installation, following these steps:

1. Created a default language page for linking:
hidden link
2. Created another default language page and added the link to the first page:
hidden link
3. Duplicated the second page into the secondary language, which copied the label and URL: hidden link
4. Then, translated the first page (the one used for the link):
hidden link

The duplicated page will continue to show the original label/URL until its source page is re-saved: hidden link

Fresh site auto login URL:
hidden link

It’s possible that on your site, the linked page translation was created after adding the link. If so, the duplicated page will point to the translated URL and title after re-saving the original page.

As a solution, you may consider:
1. Using a text field instead of a link field if you'd like full control over the labels/URLs without automatic updates.
2. Unlinking the sync of duplicated pages to manually update link labels as needed.

Alternatively, if this functionality poses a challenge, we can submit a feature request to change how this works. Please let me know how you'd like to proceed.

Thank you

The topic ‘[Closed] Buttons (ACF) get synced / duplicated with different link texts’ is closed to new replies.