Home›Support›English Support›[Resolved] Different content by relation / post object for different languages.
[Resolved] Different content by relation / post object for different languages.
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.
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?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.”
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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.