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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 10 replies, has 2 voices.

Last updated by Bobby 4 months, 2 weeks ago.

Assisted by: Bobby.

Author Posts
September 16, 2024 at 8:55 pm #16185550

laurentC-37

Background of the issue:
I'm trying to make my custom ACF blocks translatable. I have several custom blocks created with Advanced Custom Fields, and I want to be able to translate their content using WPML. I have been referring to the general WPML and ACF documentation and understood from previous support tickets that I needed to set a translation method to make the fields appear.

Symptoms:
When I go to the WPML Translation Editor, the fields from these blocks are not appearing, making it impossible to translate them. The only ACF fields I can see are those associated with posts and custom post types.

Questions:
How can I make my custom ACF blocks appear in the WPML Translation Editor?
Is there a specific setting or method I need to follow to make ACF block fields translatable?

September 16, 2024 at 11:22 pm #16185686

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Based on this documentation please go to the custom field groups and verify with me your current settings there.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

This will give me a better idea of your current set up and why they might not show.

September 17, 2024 at 7:25 am #16186400

laurentC-37

I'm using expert mode on almost every field group with specific settings for each field.
Here are the settings of a block I've been testing.

Capture d’écran 2024-09-17 à 09.24.15.png
September 18, 2024 at 5:15 am #16191008

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the screenshot!

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

September 18, 2024 at 10:19 pm #16195533

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

1. Added a page called WPML Test and added a block /banniere LV
2. Filled out the Title, subtitle and text
3. The fields are not pulled in the ATE editor, but the content is pulled into the secondary language.

I can confirm that the Bannière field group items are indeed set to 'translate'.

Workaround:

Go to pages -> edit the page in the default language

Use the language switcher (exit guttenberg full screen mode) and switch to the translation language.

Manually edit the block content

This will allow you to manually edit the fields.

See example here:
hidden link

Regarding the issue of the fields not pulling into the ATE editor, are you possibly using the same field names for another field in another field group that has a different translation setting?

September 19, 2024 at 6:17 pm #16200504

laurentC-37

Thank you for your assistance.
However, the proposed workaround is not a viable solution for our needs, as it would be significantly more time-consuming than the expected functionality of translating words directly.

We have numerous pages that require bulk translation, and it's essential that ACF Fields are included in this process. We're looking for a solution that can efficiently handle our large-scale translation requirements while maintaining the integrity of our ACF content.

September 20, 2024 at 12:04 am #16200967

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I understand, were you able to review my question at the end of the last thread?

"Regarding the issue of the fields not pulling into the ATE editor, are you possibly using the same field names for another field in another field group that has a different translation setting?"

There is a chance that you are using the same field names in another field group causing this issue.

Please review and let me know your results.

September 23, 2024 at 6:31 am #16207449

laurentC-37

I followed your suggestion. First, I deleted every field group except "Bannière". Then, I created a new page, cleared the WPML cache, and filled in the inputs. However, I'm still experiencing the same issue: the fields are not appearing in the translation editor.

September 23, 2024 at 11:39 pm #16212072

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you, I have done a few more tests and can verify that as well even when testing on a new block type.

How are these block types created as I can see they originate from your theme.

October 1, 2024 at 12:10 pm #16240259

laurentC-37

Hi !
They are registered using acf-json folder inside the theme.
I also have a problem with links, there is no longer an automatic translation of links to posts that have an english and french version, I don't know if this should be in another ticket.

October 2, 2024 at 6:11 pm #16247081

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me, yes please open a new ticket regarding links.

I have seen a similar issue in the past where the acf-json file was registering and syncing the options overwritting what was set in the wp admin.

"Due to the acf-json, the acf creates .json files for syncng but its considered as new fields etc. Getting rid of the json file solve the issue. "

Is it possible to remove the json file?

Also, are there any translation options added in the json file possibly?

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/setting-the-translation-preferences-for-acf-fields-created-using-php-code/

Let me know your results, please.

The topic ‘[Closed] ACF Blocks not appearing in WPML’s Translation Editor’ is closed to new replies.