Skip Navigation

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 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Long Nguyen 8 months, 2 weeks ago.

Assisted by: Long Nguyen.

Author Posts
March 4, 2024 at 2:57 am #15367447

dominikS-27

One Porblem I think you could help me right away.

We've ACF Field Groups for example for our Products. The Field group name should stay the same however only the field should be translateable for the second language.
However so far the field show up in the second language, but some ACF fields are locked from editing and in others, where some of the translated/custom content could be put in, it's not saving.
Under WPML Settings, Post Type Translation there's the field Field Groups (acf-field-group) With translateable is set to no. I've tried the other two settings out, however then WPML wants to translate the names of the whole field groups and field type names.
This is not exactly what we want, the Field Groupes and Types should stay the same only the content should be translateable.

March 4, 2024 at 3:00 am #15367448

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Here is the new ticket. If you don't want to translate field labels, please add the following code to the file wp-config.php, right before the /* That’s all, stop editing! Happy publishing. */ line:

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true );

Refer documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-acf-field-labels-with-wpml/#excluding-field-labels-from-the-advanced-translation-editor

Also, please note that, the post type "acf-field-group" should be set to Not Translatable.

Looking forward to your reply.
Thanks

March 4, 2024 at 12:39 pm #15369374

dominikS-27

Thank you, I've added the line.
However the main problem still persists that on the second language, the content of the field groups are not saved, neither can I edit the URLs, they are copied over and behind a lock.

March 5, 2024 at 1:35 am #15372446

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I suggest you go to ACF > Edit the field group > Set the mode to "Same fields across languages" > Re-translate the product and see if it helps.

Refer documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

March 5, 2024 at 4:37 am #15372510

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

- If you want to use the field group mode "Same fields across languages", you need to use WPML Translation Editor.
- If you want to use the field group mode "Different fields across languages", you need to use WordPress Editor.

Please check two attached screenshots and follow the documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Looking forward to your reply.
Thanks

same fields across languages.png
different fields across languages.png

The topic ‘[Closed] ACF Field Groups and Types should stay the same only’ is closed to new replies.