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.
This topic is split from https://wpml.org/forums/forum/english-support/
Tagged: Compatibility
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? |
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 Best regards, |
April 15, 2024 at 12:05 pm #15519884 | |
Sinisa |
Hi Osama, 1- Delete the translated custom field posts 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 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 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, |
April 15, 2024 at 2:06 pm #15520640 | |
Sinisa |
Hello Osama, Thank you very much for your feedback. Please, check why is that so: 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. Thank you very much. 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, |
April 16, 2024 at 10:24 am #15524145 | |
Sinisa |
Hi Osama, Regarding this: 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. |
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, |
April 16, 2024 at 2:47 pm #15526575 | |
Sinisa |
Hello Osama, Thank you for your feedback. 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 However, there is no "Featured image (featured-image-categories)" field in WPML settings, as you described. It's just missing. Very weird. Could you please check why newly created taxonomy custom fields for Category images is not visible in WPML settings (in the sandbox Site)? 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, |
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. |
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, |
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. 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. 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, |
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, |