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.