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.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - | - |
| - | - | - | - | - | - | - |
Supporter timezone: Asia/Yerevan (GMT+04:00)
Tagged: Bug
This topic contains 11 replies, has 2 voices.
Last updated by Christopher Amirian 1 year, 10 months ago.
Assisted by: Christopher Amirian.
| Author | Posts |
|---|---|
| February 14, 2024 at 7:51 am #15300347 | |
|
erikM-19 |
I notice ACF fields are not copied correctly, the underscore version of the field is skipped. Screenshot: hidden link |
| February 14, 2024 at 8:17 am #15300381 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, I created a sandbox with all the necessary WPML plugins and ACF for you to replicate the issue. hidden link Kindly get back to us when you manage to do so and I will report this to the second-tier support. Thanks. |
| February 14, 2024 at 8:35 am #15300477 | |
|
erikM-19 |
Hi Christoper, I have replicated the issue in your sandbox. Looking forward to your reply. Thanks! |
| February 14, 2024 at 11:30 am #15301722 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, Thank you. Before reporting this to the second-tier, I want to know how the one with _a Do you see an option not copied in the secondary language in the WordPress Dashboard? I want to know what was the initial trigger that made you to check the database. Also I want to know the significance of that one with _ thanks. |
| February 14, 2024 at 11:53 am #15301849 | |
|
erikM-19 |
Hi, These underscore fields are the field key reference to each ACF field. This is how ACF knows what field the value belongs to so it knows how to handle that value. Without it, the custom ACF field does *not* work, as no value from the field can not be retrieved. Quote from the ACF documentation: "Each value saved in the database is given a ‘reference’ of the field’s key. This allows ACF to connect a value with its field. ACF does this so it can format values when loaded based of the field type and settings. For example, the image field contains a setting to return an array of image data instead of the attachment ID." I initially could not retrieve ACF values from translations, so I debugged this to this exact cause, and found out this corresponding underscore field is not copied to translations, while it should from WPML settings in my initial screenshot! hidden link I want to use and sync the original ACF value for translations, thus using "Copy" value so all my translations keep in sync with the original content. |
| February 14, 2024 at 12:39 pm #15302204 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Thank you very much! One last question as I might be into something here. Is this happening only in Field Groups that are assigned to a taxonomy such as categories or tags? Does it happen for Pages or posts too? That will help a lot to know so I can finalize my report. Thanks |
| February 14, 2024 at 12:45 pm #15302211 | |
|
erikM-19 |
Hi, For my issue I only noticed and reproduced it for Post Categories, so a taxonomy correct. |
| February 14, 2024 at 12:52 pm #15302277 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, Thank you very much. The issue is reported to the second-tier support and from the look of it it must be a bug of some sort that will go for the development team. The fix will be available in the future releases of Advanced Custom Fields Multilingual but there is no ETA for that. We will inform if the specific fix for this is released. Thanks. |
| February 14, 2024 at 12:57 pm #15302321 | |
|
erikM-19 |
Hi, The issue is not within the additional plugin "Advanced Custom Fields Multilingual" but in WPML core itself. In your sandbox the plugin ACF Multilingual is not even there, as it is set as a "Copy" field in the core WPML settings and does not has to be translated at all, and so this add in plugin is not needed. |
| February 14, 2024 at 1:02 pm #15302389 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, Advanced Custom Fields Multilingual is the plugin responsible for doing that. I installed the ACF Multilingual plugin and went to the Field Groupo and set it to COPY. Would you please double-check now? Thanks. |
| February 14, 2024 at 7:56 pm #15304296 | |
|
erikM-19 |
Hi, I installed the ACFM plugin, set the group to 'Same fields across languages', checked if my ACF was still on 'Copy' (as well as its underscore version) in the WPML settings. But the result is the same, the underscore version of the ACF does *not* get copied to the translations rendering ACFs unfunctional on translations. As I only use 1 ACF for this installation, I think using the ACFM plugin is overkill as copying custom term meta fields is part of WPML core and should work. I hope this will be fixed soon. In the meantime I inserted the missing underscore versions of the ACF with an SQL update query. Maybe this is also helpful for other WPML users: INSERT INTO wp_termmeta (term_id, meta_key, meta_value) |
| February 15, 2024 at 1:34 pm #15307384 | |
|
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, Thanks for the information. The details are conveyed to the development team. Thanks. |