This thread is resolved. Here is a description of the problem and solution.
Problem:
Kadence block Advanced Image does not display the custom field image on the translation post.
- The post template is created by Appearance > Kadence > Elements.
- The block Advanced Image in the template gets the data from ACF custom field image, field preference is set to Copy.
- Translate the Kadence template.
- Add a new post, add the image to the custom field, and translate the post.
- The image displays in the original language but displays the default/fallback image of the Advanced Image block in the second language.
Solution:
Duplicate the Kadence template instead of translating it independently.
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: Compatibility
This topic contains 13 replies, has 2 voices.
Last updated by pierreB-56 1 year, 11 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
March 1, 2023 at 8:18 am #13142301 | |
pierreB-56 |
I am trying to: Translate Posts (with Custom fields and Kadence elements) Link to a page where the issue can be seen: hidden link (original post in Dutch) I expected to see: Instead, I got: |
March 2, 2023 at 7:31 am #13151733 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi there, Thank you for contacting WPML support, I'd be happy to help you with this issue. According to the debug log I see the plugin WPML Media Translation is activated on your site. Do you use this plugin to translate different images across languages? Please read more on the documentation https://wpml.org/documentation/getting-started-guide/media-translation/ While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details define( 'WP_MAX_MEMORY_LIMIT', '256M' ); define( 'WP_MEMORY_LIMIT', '128M' ); After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit. Look forward to your reply. |
March 2, 2023 at 10:23 am #13153361 | |
pierreB-56 |
Dear Long, I have now corrected the Memory settings as recommended. Regarding my image issue The issue is that ALL the posts I translate, the images from the "element preview posts" which is obviously not what I want. I need the English post to use the SAME images set in the original Dutch post What I have done so far 3. I have also recreate the top sections of the element 5delete and recreate the whole "header" section of the element The right images are still not picked in the English translation - It has worked I have no idea what is going on... I am not able to move forward and deploy it to the live site |
March 3, 2023 at 3:39 am #13159815 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thank you for your feedback. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info. ❌ IMPORTANT: Please backup your database and website before proceeding ❌ Look forward to your reply. |
March 6, 2023 at 2:16 am #13174975 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thank you for your feedback. After reviewing the block template on your site, I see that the images on the frontend are built with the block Advanced Image of the Kadence block addon and get the value from the ACF field image. So it could be a compatibility issue between three plugins. To be able to report the compatibility issues we need to replicate the issue on a clean installation. I created a clean installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below: Kindly follow the steps below: - Install ACF and Kadence block addons plugins This will help us to report the probable issue to the compatibility team and solve the possible problem faster. Look forward to your reply. |
March 9, 2023 at 8:55 am #13204615 | |
pierreB-56 |
On Monday I have responded via email ... you must have missed it -----------See my response below----- Mon, 6 Mar, 13:29 (3 days ago) to WPML Hello support, I have done the following: Since the issue is with the translation of images I do need you I am trying to reproduce the same issue I am having on my "staging.nadaclare.nl" site => I was able to reproduce the issue as you can see Dutch post is NOT the sunset picture but the picture with the bench |
March 10, 2023 at 1:48 am #13212643 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thank you for your feedback. I see the issue on the sandbox site. I'm discussing the issue with my 2nd tier support and I will update you here when I have something to share. FYI, the ACF field group should not be translatable. Please read more on the documentation https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/ Regards. |
March 11, 2023 at 7:32 am #13222307 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I've escalated this issue to our Compatibility team. I'll update you as soon as I have something to share. Also, can you please contact the plugin author and ask about this issue? They may aware of this issue already and have some information about that. Thanks for your patience. |
March 14, 2023 at 7:13 am #13239319 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I got some information from the 2nd tier support, please check it below. There is a workaround to fix this issue, please duplicate the Kadence element for translation instead of translating it independently. Then you can see the custom field image displayed on the translation post correctly. Please check the element Appearance > Kadence > Element > WPML template. Look forward to your reply. |
March 14, 2023 at 9:15 am #13240325 | |
pierreB-56 |
Hi Long, |
March 14, 2023 at 9:44 am #13240599 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thank you for your feedback. The Kadence Element actually does not need to translate independently. It just needs to be duplicated. On your staging site, if you've translated the Kadence Element, you can switch the language in the menu at the topbar, then click on the button "Overwrite with Dutch content." to set the translation as a Duplicate. Look forward to your reply. |
March 14, 2023 at 10:33 am #13241185 | |
pierreB-56 |
Hi Long, - Advanced Custom Fields Multilingual Version 2.0.0 | By OnTheGoSystems I have done what you suggested and it seems to have worked... I also have another site where I want all the language to display ONLY the English posts is this possible? even if the user is on another language i need to only show the English posts (note English is also NOT the default language) That site is New threads created by Long Nguyen and linked to this one are listed below: |
March 15, 2023 at 1:14 am #13247239 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Thank you for your feedback. We can handle one issue per ticket only so if you have another issue/question, please create a new ticket for it. I can help you to split this ticket into a new one then we can discuss the new question there. If you see the main issue of this ticket with the translation image is resolved, please mark this ticket as Resolved. Thanks. |