Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to relate different content in different languages on their site using ACF fields. Specifically, they want to assign different authors to blog posts and different features to products in different language versions.
Solution:
We found that the Field Group was only assigned to the Blog post type and not the Products post type. However, the post object field settings were configured to filter both Blog posts and Product posts. To achieve the desired functionality of linking different content in different languages, the translation settings for the Products post type must be changed to "Translatable." This adjustment will allow the client to link to Products via the Post Object field as intended.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at WPML Support Forum.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 1 week, 2 days ago.

Assisted by: Bruno Kos.

Author Posts
January 3, 2025 at 10:38 am #16560799

enricoC-34

Background of the issue:
I am trying to relate different content in different languages on my site hidden link. For example, I want a blog article to have one author in the English version and a different author in the Spanish version. Similarly, I want a product to have different features in English and Spanish. This is done using ACF fields: 'author_acf_relation' for blog > author relation and 'select_a_product_key_feature' for product > product features relation, both of type Post Object.

Symptoms:
I need to relate different content in different languages using ACF fields.

Questions:
How can I relate different content in different languages using WPML?
Can I use ACF fields to manage content relations for different languages?

January 3, 2025 at 1:23 pm #16561522

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Here is the ticket, I am checking this with our 2nd tier and will keep you posted.

January 3, 2025 at 2:20 pm #16561641

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

admin@example.com no longer works for me, can you recreate this user again?

January 8, 2025 at 1:28 pm #16573654

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

I am checking this with our 2nd tier and will keep you posted.

January 9, 2025 at 7:46 am #16576216

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.

January 9, 2025 at 9:33 am #16576797

enricoC-34

Yes, please proceed.

January 9, 2025 at 2:49 pm #16578564

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

January 13, 2025 at 1:04 pm #16588489

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Our 2nd tier checked this case.

The Field Group is currently assigned only to the Blog post type and not the Products post type. However, within the post object field settings, there are options to filter which post types should appear in the dropdown for selecting a post object to connect.

Currently, those settings are configured to filter by both Blog posts and Product posts. Since Product posts are set to display as translated, they will appear in the dropdown as expected based on this configuration.

If this behavior is not what you want and you need the ability to link to Products via the Post Object field, the translation settings for the Products post type must be changed to “Translatable.”

Does this help?

January 13, 2025 at 3:47 pm #16589552

enricoC-34

This doesn't seem to solve the issue and doesn't address my use case.

My use case is: Given items:

Blog 1
Products:

Product 1
Product 2
Product 3
Languages:

English
French
EN translation is the main language.

Use case:

For the English translation, I need to relate Product 1 and Product 2.
The page will show Product 1 and Product 2 if the EN version exists for these items.

For French (FR) translation, I need to relate Product 3.
The page will show Product 3 only if the translation for Product 3 exists.

At the moment, I'm unable to relate different products based on language even if the field is set as translatable.

Can you please assist?

image.jpg
January 14, 2025 at 7:10 am #16591339

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

What we mean is that the only way to make this work with your current setup is to change the Products (products) setting to "Translatable – only show translated items" in your WPML settings. You can update this by going to:
hidden link.

Once that is set, you can navigate to:
hidden link
Here, you will be able to select the slider elements.

Would this approach not work for you?