This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate ACF select field values using WPML but are seeing the original language values instead of the translated ones. Solution: We recommend checking the ACF Field Group settings for your 'dough' field. Change the return format from "Value" to "Label". This adjustment is necessary because the 'get_field' call currently retrieves the value, which is not translatable. By switching to "Label", you enable the translation of these labels in choice fields like Select fields.
If this solution does not resolve your issue or seems outdated, please visit our known issues page to check for related problems. Ensure you have the latest versions of themes and plugins installed. If needed, do not hesitate to open a new support ticket on our 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.
yes, i tried both ways -
when using Same fields across languages, fields not shown on page translation.
when using Different fields across languages, i translated using string translation, but translations values not shown on frontend.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
So, the dropdown translation works, but it doesn't function correctly within the modal?
Could you clarify where the modal is being generated? It seems the modal isn't properly filtering these values. This could either be due to missing code specific to the modal (if it's only pulling ACF fields) or a compatibility issue with the plugin managing the modal.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Can you tell where in the theme code or plugin code can we find the code reponsible for it? Perhaps it is where WPML filters are missing that would filter the content based on the language.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Can you please try the following:
Update the `products()` function in the `page-our-products.php` file by replacing the current implementation of `get_field('dough', $product->ID)` with the following code:
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
In the ACF Field Group settings for the dough field, can you try changing the return format to "Label" instead of "Value"?
Currently, it is configured to return the value, which means the get_field call is retrieving the value, not the label. Labels in choice fields, like Select fields, are translatable, whereas values are not.
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.