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 |
---|---|---|---|---|---|---|
- | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
- | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | - |
Supporter timezone: Europe/Zagreb (GMT+01:00)
Tagged: Bug, Documentation request
This topic contains 5 replies, has 0 voices.
Last updated by Dražen 17 minutes ago.
Assisted by: Dražen.
Author | Posts |
---|---|
March 10, 2025 at 3:44 pm #16797419 | |
michelleM-18 |
Background of the issue: add_filter('acfml_should_translate_acf_entity', function ($shouldTranslate, $acfField, $postId) { if (!empty($acfField['key'])) { return $shouldTranslate; The response from this function: - These are the correct responses - the _level returning false should not appear in the WPML Translation editor at hidden link. 126:string '_field_cont-contheading_title' (length=29) Symptoms: Questions: |
March 11, 2025 at 6:44 am #16799480 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for contacting us. 1) May I ask why you are using this approach and not setting the field to be translatable or not from ACF group translation settings? 2) Did you make a small change to the default language page, save and then re-translate? It needs an update for ATE editor to start new job, otherwise ,it shows pthe revious job content. Regards, |
March 11, 2025 at 10:18 am #16800730 | |
michelleM-18 |
Hello! Thanks for getting back to me. Just to give a bit of detail around this problem: 1) We are using a PHP implementation for all ACF fields, and ACF fields are not created inside of WordPress, do not show up inside of the CMS. 2) I have "Cancelled Translation + Modified Content + Saved Post + Tried Translation Again". - 2.1) Non of the ACF fields assigned to Gutenberg Blocks show up - in "Settings> Custom Fields Translation" - 2.2) Additionally I have gone to "Languages > Edit Languages > Updated 1 value" to see if any updates are triggered. --- I have double run each task mentioned above to double-check if it might resolve the issue, Again, every field shows in the WPML translation editor, rather than just the fields that return true. When running acfml_should_translate_acf_entity it does see every field, and run through them returning a value of either true or false based on the logic 🙂 I've attached an image, in effect the headings should not show as translatable content. |
March 11, 2025 at 11:06 am #16801034 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, Thanks for getting back to me. In that case, I would suggest using next method, and setting the correct translation settings inside your PHP code: Recommended translation settings for each filed type: Let me know if this is okay and how it goes. Regards, |
March 14, 2025 at 9:38 am #16815503 | |
michelleM-18 |
Hello! Thank you, this seemed to work really well - however there is one more small issue I need to address with this way of proceeding. Our standard Field Layout is like the following: [ However when it comes to links, the translation editor is trying to translate the link and the link label, rather than just the link label. Our links are often in a repeater field. For example: [ I've attached a screenshot, showing the button URL showing up in this instance - in which we'd only like to translate the Label. |
March 14, 2025 at 11:16 am #16816237 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. I am afraid it is expected, and correct would be that WPML automatically adds a translated link. Currently, it is a known issue, and we are planing fix for ACFML 2.2.0. In the meantime you can translate them manually or try next suggested workaround: Let me know if that helps. Regards, |