Skip Navigation

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

Problem:
The client needed a solution where they could upload a category image using a Metabox custom field on the default language, and have that image automatically duplicated across other languages without the need to upload the same image for each language.
Solution:
1. We advised the client to ensure that at least one image is added to a category in the default language to see the field in the settings page.
2. Once an image is added to a category, the field should appear correctly in the settings.
3. We asked the client to look for a specific message indicating that the settings have been updated, as shown in the screenshot we provided.
4. After seeing the message, the client should update the settings one more time to ensure the changes take effect.

Please note that this solution might not be relevant to your situation due to it being outdated or not applicable to your case. If this is the case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket in the 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 14 replies, has 2 voices.

Last updated by Osama Mersal 1 year ago.

Assisted by: Osama Mersal.

Author Posts
April 14, 2024 at 11:54 am #15515629

Sinisa

Hello,

Please, find the whole explanation with screensharing on following link: hidden link

Also, I wish to provide solution for the client where he can upload the category image (created by Metabox custom field) just on default language, but that image will be duplicated (will appear) on other languages as well. So, he don't need to upload the same image for the same categories for other languages.

What is the link to your site?
hidden link

April 14, 2024 at 12:00 pm #15515635

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please try the following steps:

1- Delete the translated custom field posts
2- Go to WPML-> Settings-> Post Type Translaslation section
3- Set the Custom Field post type to "Not Translated"
4- Go to WPML-> Settings-> Custom Term Meta Translaslation section
5- Set the Featured image field to "Copy"
6- Edit the default language categories and update them
7- Check the translated categories

Best regards,
Osama

April 15, 2024 at 12:05 pm #15519884

Sinisa

Hi Osama,
Thank you very much for your feedback.
However, I wasn't able to understand what exactly I have to do. Let me explain. Here are your instructions:

1- Delete the translated custom field posts
2- Go to WPML-> Settings-> Post Type Translaslation section
3- Set the Custom Field post type to "Not Translated"
4- Go to WPML-> Settings-> Custom Term Meta Translaslation section
5- Set the Featured image field to "Copy"
6- Edit the default language categories and update them
7- Check the translated categories

My questions:

"1- Delete the translated custom field posts."

I guess you mean I have to delete Custom post field - not "custom field posts" - which could mean I have to delete custom posts (I apologize, English is not my native language, so maybe I am writing something wrong).

2- Go to WPML-> Settings-> Post Type Translaslation section
3- Set the Custom Field post type to "Not Translated"

I guess I have to create again the same Custom post field, right? Otherwise, something is wrong regarding topics number 2 and 3.

The rest of the topics from the list are also not understandable to me, due to using "custom field posts" term in text, and as I previously said - it seems to me something is missing.

Could you please, write again step by step explanation, but maybe more carefully?

Thank you very much.

Best regards.

April 15, 2024 at 12:52 pm #15520039

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please check the following steps:

1- Go to WPML-> Settings-> Post Type Translaslation section
2- Set the post type (meta-box) to "Not Translated"
3- Go to WPML-> Settings-> Custom Term Meta Translaslation section
4- Set the Featured image (featured-image-categories) field to "Copy"
5- Edit the default language categories and update them
6- Check the translated categories

If that didn't fix the issue, please log in to this sandbox site and install the "Meta Box" plugin. (hidden link)

After that, please create a test post type, taxonomy, and field. Add a test taxonomy with an image to replicate the issue.

Best regards,
Osama

April 15, 2024 at 2:06 pm #15520640

Sinisa

Hello Osama,

Thank you very much for your feedback.
I am very "scary" about step 2 you wrote in your message 😉
I mean, this one: Set the post type (meta-box) to "Not Translated"

Please, check why is that so:
hidden link

If you think I may do that and that won't break any of previously created Custom Post types and Custom fields and Taxonomy for those Custom Post types - I will do that.
However, please check the video explanation.

Thank you very much.
Best regards,

Sinisa S.

April 15, 2024 at 3:02 pm #15520992

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Sinisa,

The post type I mean is the one in the attached screenshot.

If you are not comfortable changing the translation preferences, please replicate the issue on the sandbox site to debug it without affecting your live site.

Best regards,
Osama

2024-04-15_16-59-11.jpg
April 16, 2024 at 10:24 am #15524145

Sinisa

Hi Osama,
Thank you very much. Your screenshot helped me.

Regarding this:
"If you are not comfortable changing the translation preferences, please replicate the issue..." - it's not the problem to change some settings, I am just asking you if you are sure that changing "Field Groups (meta-box)" from "Translatable" to "Non translatable" won't messed up things on existing Post types, and their Custom fields. That's the question 😉

And, this is not something I can test on sandbox, because sandbox installation doesn't have all those posts types and fields.

Thank you very much.
All the best!

April 16, 2024 at 10:27 am #15524164

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I'm not sure if it won't affect the existing data, but we will be able to test the correct translation preference on the sandbox so you can replicate it on your site.

However, please back up your site or test on a staging site to ensure the safety of your data.

Best regards,
Osama

April 16, 2024 at 2:47 pm #15526575

Sinisa

Hello Osama,

Thank you for your feedback.
I spent some time playing with various options, and discovered I WOULD have issues if I changed "Field Groups (meta-box)" from "Translatable" to "Non translatable".

However, I also discovered why I had duplicate Image field for languages other then English. And, I fixed that. Now, I wish to proceed with the following 2 steps:

3- Go to WPML-> Settings-> Custom Term Meta Translaslation section
4- Set the Featured image (featured-image-categories) field to "Copy"

However, there is no "Featured image (featured-image-categories)" field in WPML settings, as you described. It's just missing. Very weird.
That's why I install Metabox in Sandbox you provided in the previous message, so you can test everything and see for yourself.

Could you please check why newly created taxonomy custom fields for Category images is not visible in WPML settings (in the sandbox Site)?
Thank you very much.

Best regards

April 16, 2024 at 4:19 pm #15527207

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for replicating the issue. In order to see the field in the settings page, you need to add at least one image to a category.

I added an image to this category. (hidden link)

After that, then the field appeared correctly. (hidden link)

Best regards,
Osama

April 16, 2024 at 4:33 pm #15527265

Sinisa

Hi Osama,

Ok, I added one Pag Island category and add also Featured image to English version of that category. But, the image is not duplicated to other categories. I mean, you have to add it manually to every language. My first question and problem explanation was exactly related to that issue.
Please, check the Sandbox Site and all the settings. I think everything is setup as you explained, but still doesn't work as it should be.
Thank you very much.

April 16, 2024 at 4:42 pm #15527293

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I tested it, and it works correctly. Please make sure that you see the message in the attached screenshot.

After that, please update it one more time.

Best regards,
Osama

2024-04-16_18-39-57.jpg
April 16, 2024 at 4:57 pm #15527360

Sinisa

Hi Osama,

So, the solution is to update the featured images twice, as it seems. I mean, the first time you have to upload (or to change) the image, and click to Update button, and after that you have to click to Update button again.
Isn't that a bit strange?

I mean, don't get me wrong, it's not the problem to click on the same button twice, but this is the first time I come to such situation in WordPress. I believe this is kind of issue.
Do you have some logical explanation for such a behaviour?

P.S. For instance, I have on my Site a few other fields, which automatically updates values (those values are in input fields) on all languages, after you update value on default language. This is how things should work (I mean, it's logically if you click to Update, the value would be updated). There is no point to click two times.

Thank you very much.

April 16, 2024 at 5:01 pm #15527364

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

You are correct. It should work from the first time, but for some reason, it works only after the 2nd time.

I'll consult our compatibility team regarding this issue and update you as soon as I get their reply.

Best regards,
Osama

April 22, 2024 at 3:58 pm #15552130

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for your patience. Our compatibility team didn't find another workaround other than saving the images twice.

However, this issue has been escalated to our Dev team, so they are aware of it and will work on a permanent fix.

Best regards,
Osama