Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You have multiple MB text fields on your homepage, but some are not visible in the WPML Advanced Translation Editor screen, even though they are set to 'Translate' in WPML > Settings > Custom Fields Translation.
Solution:
We recommend adding the following line to your functions.php file:

add_filter('wpml_tm_job_field_is_translatable', '__return_true');

After adding this code, edit the page in the default language, make a minor edit, and then update it. This should allow the missing fields to appear when using the search field in the Advanced Translation Editor.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, you can open a new support ticket for further assistance at WPML support forum.

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.

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by Osama Mersal 3 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
July 17, 2024 at 1:24 pm #15966452

adrienR-5

Background of the issue:
I have multiple MB text fields inside my homepage, but for some of them, I don't see them in the Advanced Editor screen. Those fields are set to 'Translate' inside WPML > Settings > Custom Fields Translation.

Symptoms:
Some MB text fields are missing in the WPML Advanced Translation Editor screen.
For example I don't have homepage__pourquoi_bloc_1_chiffre_1, homepage__pourquoi_bloc_1_chiffre_2 and homepage__pourquoi_bloc_2_chiffre but I do have homepage__pourquoi_bloc_3_chiffre

Questions:
Do you know why some MB text fields are not appearing in the Advanced Editor screen?
Is there a way to refresh the screens so WPML fetches all the fields?

July 17, 2024 at 1:51 pm #15966635

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please let me know how these fields are added in the default language.

Also, please try the following steps:

1- Edit the home page in the default language
2- Add "V2" to the page's title and update it
3- Delete the "V2" and update the page
4- Update the translation using the translation editor

Best regards,
Osama

July 17, 2024 at 3:41 pm #15967130

adrienR-5

Hello Osama,

So what I did :

1 - Clear Litespeed cache
2 - Go to my homepage in default language (FR) and click edit page in the admin bar
3 - Click on the page title, add "V2" at the end and click the "Update" button
4 - After the page is updated (notification) I remove the "V2" and click "Update" again
5 - After the page is updated I click the "Update French (Canada) Translation" icon within the WPML sidebar
6 - Then inside the Advanced Translation Editor, I still not see my field, just the dynamic tag of Bricks that is used to fetch the value of the metabox field

See screenshots that show that I still cannot see the **field-MB_FIELD_ID**

markuphero-subFk3nYlxHZz4kiLruL.png
markuphero-bJ79XFgF66Dz1JcorBRs.png
markuphero-Wd7h1ndceXaiaRro3YEg.png
July 18, 2024 at 6:24 am #15969990

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

July 18, 2024 at 1:45 pm #15972882

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the mentioned field, and it contained only a number so that you couldn't see it in ATE.

When adding a text to it, it appears in ATE correctly.

Best regards,
Osama

2024-07-18_16-43-21.jpg
July 18, 2024 at 2:09 pm #15973018

adrienR-5

Hi Osama,

So that's an issue from WPML?
Why can't I translate text field that contain only number?

July 18, 2024 at 2:35 pm #15973200

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

You can translate numbers if you use the search field. (Kindly check the attached screenshot)

Please check this guide to know more about translating numbers in ATE.

Best regards,
Osama

2024-07-18_17-33-45.jpg
July 18, 2024 at 4:12 pm #15973719

adrienR-5

Hi Osama,

Even when I search the field and translate it it doesn't render so something isn't working.

You can check the FR-BE homepage : hidden link

I want the first item "13%" to be "19" and this isn't working.

Check the dev website please.

So I think what you find when you type "13" is a text block from a previous version, when value was static inside Bricks.

I modified the "13%" to "15%" inside the default (FR) Homepage, and I can't find anything when typing 15% so it's a bug from WPML, please help me

markuphero-yQovhs8MiS7VDvHUEUyu.png
markuphero-Og2FzhqFhPIAFAOqouWY.png
markuphero-QTSJEgAid8gIqg1Sa7ym.png
markuphero-4oTh5zes56M8nlJZcwbU.png
markuphero-BNm5BjH4txsHt0j3kUIw.png
July 19, 2024 at 9:58 am #15977233

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please login to this hidden link">sandbox site and install the Meta Box plugin.

After that, please import this field group and use it on a test page to replicate the issue.

If the issue is replicable, please let me know to consult our 2nd tier support team.

Thanks for your cooperation

Best regards,
Osama

July 19, 2024 at 11:42 am #15978015

adrienR-5

Hi Osama,

Why is your Advanced Translation Editor in dark mode and does not have the same layout as what I have on my website?

I checked the plugin version, and it is the same.

On my development website, I deactivated every plugin to match what you have on your sandbox, keeping only the Bricks theme activated. However, I still can't see the "17%" when I edit the translation on my homepage (FR-BE).

Please check the development website again and let me know what's going on with my WPML setup.

markuphero-VAltjAGdDVxq93FRg354.png
markuphero-sHVQ0NLQW9zgjdwqFnQ1.png
markuphero-TwDbKP7HAmgRpanAG7K6.png
markuphero-kAiGmeeALSL6dVe8Ealu.png
markuphero-0FFUAjg8SoVCaTvylUfn.png
July 19, 2024 at 12:39 pm #15978317

adrienR-5

I created a new page and just added 1 MB text field and did the same thing, still the same issue: hidden link

markuphero-zMb1EluzM0WVlCfbhgbD.png
markuphero-VGzqUS4qnQEGTCTULMok.png
markuphero-1ndClUG0G3EPUMlxc0Xn.png
July 20, 2024 at 1:28 pm #15981438

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The dark mode editor is the new version of the ATE editor, and it's in the testing phase, so it's not available on the client's sites.

I changed it to the version on your site and created a hidden link">new test page to check if the issue persists, but I don't see the field.

Please add the field, translate the page, and let me know if the field worked correctly.

Best regards,
Osama

July 20, 2024 at 2:17 pm #15981555

adrienR-5

Hi Osama,

I added the MB Field group to your new page and filled the field with "12%".

But when I translate the page in FR, I don't see the field inside ATE editor.

Let me know how we can solve this please.

markuphero-Xf4BBw12F9DF0sNFLBVk.png
markuphero-ECdEqvieQxF8cBVZ2MZp.png
markuphero-cYpHAoQQ1cZfUlkIGXjq.png
July 20, 2024 at 2:23 pm #15981615

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. The numbers issue will be fixed in the next version of ATE. Currently, the workaround is to translate this field manually by editing the translated page using WordPress editor.

Also, I'll consult our second-tier support team about this issue to see if there is another workaround.

Best regards,
Osama

July 20, 2024 at 2:26 pm #15981619

adrienR-5

Hi Osama,

You mean by adding the MB group field to each other language pages?

Because when I use the WordPress Editor I don't see where I can edit the field at the moment.

Also do you think you can provide a temporary fix for our live website so we can translate those fields because we're stuck and it's important?

Thanks!