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

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by Andreas W. 16 hours, 9 minutes ago.

Assisted by: Andreas W..

Author Posts
October 29, 2024 at 5:36 pm #16343856

nathanH-2

Background of the issue:
I am trying to use WPML to translate my WordPress site. The custom field boxes do not appear in the block editor for translated versions.

Symptoms:
Custom fields not showing in translated version on editor.

Questions:
Why are the custom field boxes not appearing in the block editor for translated versions?

October 29, 2024 at 8:50 pm #16344244

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please revise WPML > Settings > Custom Field Translation and make sure that the field(s) are set to "Translate".

After that, edit the field(s) on the original content, save the content and open the translation editor.

Complete guide:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

If this did not solve the issue, please let me know.

Best regards
Andreas

October 30, 2024 at 11:10 am #16346434

nathanH-2

Thank you. I had already tried that and it does not resolve my issue unfortunately.

By the way, we use the 'WordPress Editor' for translating instead of 'WPML Translation Editor'.

October 30, 2024 at 12:05 pm #16346782

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Is this request for fields created with ACF?

1) Make sure that the ACF Field Groups are set to "Different fields acrosss languages" when editing the groups in ACF.

2) Set WPML > Settings > Post Type Translation > ACF Field Groups to "Not translatable".

When using the WordPress-Editor for translating the content, then the only way to translate custom fields, is by editing manually on the translated content.

If you would like to use the "Expert" mode for your ACF Groups, you should set the custom fields to "Copy once" in such case, which will copy them only once and they then can get edited on the translated post or page while using the WordPress Editor.

IMPORTANT:
It seems that the minimum requirements are not met on the server: https://wpml.org/en/home/mindestanforderungen/

Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires a minimum of 128M.

Your current values ​​are:

PHP Memory Limit 400M
WP Memory Limit 40M

To do this, you need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.

Add this code to the wp-config.php file to increase WordPress memory:

 
define ('WP_MEMORY_LIMIT', '256M');

Add this just before this comment:

 
// That's all, stop editing! Happy blogging.

The current values ​​can be viewed under WPML > Support > WordPress.

These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.

October 30, 2024 at 4:47 pm #16348557

nathanH-2

Yes, this request is for fields created with ACF.

Thank you. I followed the 2 steps (screenshots attached). But unfortunately still there are no custom field settings in the block editor (screenshot attached) when editing the translated version.

I have now updated WP Memory Limit.

step 2.png
step 1.png
block editor.png
October 30, 2024 at 5:07 pm #16348657

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi,

I would like to offer to take a closer look into this issue and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.

If you are not able to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

Best regards
Andreas

October 30, 2024 at 10:10 pm #16349263

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, but the ACF Fields are not even showing up on your original portfolio items, even if I disable WPML. This means, the issue is not caused by WPML.

I suggest you keep disabling plugins or switch the theme to identify what is causing the issue.

October 31, 2024 at 12:50 pm #16351418

nathanH-2

Hello. We do see them on the original Portfolio items. I showed this in the video.
For example, you can go here to edit this original portfolio item: hidden link

And you should see the custom fields on the right. I have attached a screenshot.

QTXKif588H.png
October 31, 2024 at 2:19 pm #16352061

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, I was not checking the sidebar and expecting the fields to show up beneath the content.

The fields are also available on the translated portfolios. See screenshot.

Possibly I misundertood you. Are you expecting the original field values to be copied when translating the portfolios with the WordPress Editor?

If so, then the current field groups setting "Different fields across languages" should copy the values only once for images but not for text. This is explained in detail here:

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

I have now tested this with a new portfolio and the images are copied as expected, the text fields are empty. This is expected.

If you expect the original text field values to be copied when creating the translation, then I suggest you set the ACF Field Group to "Export" mode and set the text fields to "Copy once". This will copy the text values only once, when translating them for the firs time. After that you will be able to edit the translations manually.