This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to display images from an ACF PRO gallery field in a post layout using Divi, but the images are not displaying as expected.
Solution:
1. Check the translation setting of your ACF field. If it's set to 'Not Translatable', consider changing it to 'Copy' or 'Translatable' and see if there is any improvement.
2. If you are not using different images per language, the media translation add-on might not be necessary. However, if you are using it, ensure that you utilize the admin language switcher at the top of your dashboard to translate media texts like alt texts, captions, and descriptions. This should reflect on the frontend if Divi/ACF uses the media meta from the media library.
3. Test these settings on a sandbox site to see the changes without affecting your live site.
If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your specific 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. If further assistance is needed, please open a new support ticket.
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, Exception
This topic contains 17 replies, has 2 voices.
Last updated by Lauren 1 month, 1 week ago.
Assisted by: Lauren.
Author | Posts |
---|---|
September 17, 2024 at 3:36 pm #16189692 | |
mattiaD-7 |
Background of the issue: Symptoms: Questions: |
September 18, 2024 at 3:01 pm #16194207 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I took a look at your staging site and noticed that the section that shows the dymanic gallery is missing if you edit the English theme builder template. Please see attached screenshots below. How do I add the dynamic gallery to the English theme builder template? |
September 18, 2024 at 4:18 pm #16194732 | |
mattiaD-7 |
Hi Lauren, I checked and I can see a gallery directly under the breadcrumb. You can check the layout at this page: hidden link Can you see it? See the attached screenshot. Thank you very much. |
September 20, 2024 at 9:11 pm #16204150 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I'm still trying to locate the issue with the images. Is it okay if I turn your staging site to minimal settings? Meaning, disable all non WPML plugins (except for ACF) and switch to a default theme temporarily? |
September 23, 2024 at 5:25 am #16207325 | |
mattiaD-7 |
Hi Lauren, thanks for your answer. Of course. Fell free to do what you need with the staging environment. Mattia |
September 23, 2024 at 8:31 pm #16211790 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I now have your site set to minimal settings, but now I am no longer seeing the correct images in either language. So it seems this is related to a conflict with a 3rd party plugin. Do you know which one was used to set the galleries up? (Aside from ACF, of course - that one is still active). |
September 24, 2024 at 5:36 am #16212378 | |
mattiaD-7 |
Hello! To make the gallery dynamic in the theme builder layout I'm using the "Divi Dynamic Helper" plugin (hidden link). The gallery is the default one that comes with the Divi theme and with the Divi Dynamic Helper plugin I'm able to dynamically set post images to the gallery module. However I followed the documentation at the link above. I tried all the 3 ways it indicates: a textual field with the list of IDs, the ACF group with some images inside and at last the ACF pro with the Gallery field. If it can helps you I'm using the Divi Dynamic Helper even for the Google Maps coordinates (ACF field). Hope this helps, thank you. |
September 24, 2024 at 9:59 pm #16217691 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I"m thinking this may be a compatibility issue with Divi Dynamic Helper. If we can confirm this, I can escalate to our compatibility team. So, I have set up a fresh install and installed Divi, ACF and WPML. I created a standard gallery and I can see the images copied as expected in both langauges. What I would like you do to is install a copy of your Divi Dynamic Helper and try to reproduce the issue here. YOu can use this link to login: hidden link Please let me know once this is done and if the same issue is happening here, we can escalate this to our team and try and get a solution or reach out to the plugin author. |
September 25, 2024 at 6:59 am #16218259 | |
mattiaD-7 |
Hello! thank you for the fresh install. I installed the Divi Dynamic Helper with a valid license key, configured in ACF the "Museum" custom post type and configured in the Divi Theme Builder the layout for all the museums with just a divi default gallery module in it. However my ACF pro subscription is limited to one website. Do you have an ACF PRO subscription you can upgrade ACF in this sandbox website so that I can insert a gallery custom field in the new Museum custom post type? Your test is working but it's made in a page where no dynamic content is involved. I think we should proceed testing the gallery module inside a Divi layout. Furthermore I saw that in WPML options there is no media translation voice. Why? Thank you very much. |
September 25, 2024 at 5:51 pm #16222205 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I have installed and activated ACF Pro on the test site. As for Media Translation, that add on only needs to be active if you want to use different images per language. I believe we are trying to test copying the images, but if you need me to install the Media Translation add on just let me know and I"ll be happy to add it. |
September 26, 2024 at 6:12 am #16223147 | |
mattiaD-7 |
Hi! Thank you very much. I managed to create a Gallery ACF field associated to the Museum custom post type. I set the field "not translatable" in the WPML settings (setting the expert configuration in the ACF pro configuration). Then: The behavior is the same as my website: the gallery images appears only in the english language (the default one), but not in italian. ---- Media Translation ------- Now the sandbox website is in the state outlined in this message, so it's all testable Thanks for your support. Mattia |
September 26, 2024 at 9:15 pm #16227556 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
Setting the ACF field as not translatable usually makes it not available in the second language. Have you tried setting it to Copy or Translatable? Please test that and see if there is any difference. |
September 27, 2024 at 6:01 am #16228141 | |
mattiaD-7 |
Hi! Wow! Setting the gallery field to "copy" in WPML settings makes the gallery works on your sandbox site! Thank you!!! However it seems that the integration between Divi Dynamic Helper and WPML works. Now I need to have the alternative text of the images in the gallery translated based on the selected language. As for my knowledge when I upload an image in the WordPress media library I can set just an alternative text, so in my website I thought that your Media translation plugin did for me to set an alternative text for each language but the default one. Am I did it right or there is another way to localize the alternative text of the images in my media library? If I did it right on my website can you please install on the sandbox wesbite even the Media translation plugin to reproduce the same situation as my website? Thank you very much for your support! We're getting closer to the solution!!! |
September 30, 2024 at 12:41 pm #16236179 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
I have activated the media translation add on, however, if you aren't using different images per languages, this should not be required. WPML allows you to have different alt texts, captions, descriptions etc per language just by changing the admin language and editing the media content that way. If Divi/ACF is using the media meta from the media library, then this should work. But if there are different fields where you enter the captions/descriptions on the page when you insert the gallery, then we may need to look at it differently. Feel free to test around on the sandbox site, and use the admin language switcher at the top of the dashboard to translate media texts and let me know if you see the changes on the frontend. |
October 2, 2024 at 5:44 am #16243340 | |
mattiaD-7 |
Hi! Thank you very much! It works everything in the sandbox website and in the staging website too! You're right that there is no need of the Media translation plugin to have localized image attributes. |