This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is developing a site and using WPML to streamline the translation workflow. They have a custom field to set a menu on a specific post type and want the same menu on translated pages without needing to translate the menu name or set it manually each time. They are experiencing issues with unnecessary translation requests for some values.
Solution:
We explained that there isn't a specific option to control this behavior directly when it's set to 2, as the ACF translation is activated regardless of the input provided. We suggested using the "Different fields across languages" option, which allows translating the input method directly as a string. For more details, see the documentation on translating ACF field labels with WPML.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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.
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: Documentation request
This topic contains 7 replies, has 3 voices.
Last updated by Marcel 2 months, 3 weeks ago.
Assisted by: Marcel.
Author | Posts |
---|---|
August 28, 2024 at 2:00 pm #16115690 | |
T4ng |
Background of the issue: Symptoms: Questions: |
August 29, 2024 at 12:56 pm #16120062 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
Hello! The menu usually is a taxonomy term and not related to custom fields. |
August 29, 2024 at 1:01 pm #16120086 | |
T4ng |
Hi, |
August 29, 2024 at 2:54 pm #16120794 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, That's correct. The value "0" indicates that it will be ignored and not available for translation. You can find more details here: WPML ACF Translation Settings. Best regards, |
August 29, 2024 at 4:34 pm #16121375 | |
T4ng |
OK, so I just tested it. - 0 would basically remove the menu from the translations It's worth mentionning that, after changing the value, we get a notice from the top bar, that >WPML is uptating this custom field along what's just been set. Now, sorry, I have another question... Is there a way to achieve this? Thanks you! |
August 30, 2024 at 6:32 am #16122910 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, there isn't a specific option to control this behavior. When it's set to 2, the ACF translation is activated regardless of the input you provide within the segment. This ensures you have complete control over your translation. Imposing a predefined input limitation could create issues for other clients with different requirements. For example, consider a scenario involving a post ID. If the post ID is 15 and the translation result is 20, incorrect input would lead to the same problem. In this requirement, you usually need to add an ID or input because WPML doesn't know it's connected to another resource. There is a option called "Different fields across languages" where you can translate the input method directly as string: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-acf-field-labels-with-wpml/#different-fields-across-languages. Best regards, |
August 30, 2024 at 8:09 am #16123580 | |
T4ng |
I kind of understand what you explain, but I'm specifically talking about a restricted field here. While I understand your point about the post ids, we tackle this issue differently. By the way, what I point here is that if an ACF is a dropdown menu, and if it's offered for translation as translated, then its translation options should also be a dropdown menu, offering this dropdown menu's restricted choices translation. |
August 30, 2024 at 8:24 am #16123603 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, I understood what you mean regarding the post ID—it was just an example. However, at this time, we don't have any plans to modify the editor's interface to include an option for selecting values. Additionally, this information isn't included in the translation file our editors receive. Thanks for understanding! Best regards, |
August 30, 2024 at 8:36 am #16123668 | |
T4ng |
OK. I just still think offering this would be relevant, and would help making WPML user friendly to non tech-savyy users. |