Hi @dantec39
There’s an issue with Polylang which is causing empty galleries on translated pages, just as in your case. I’ve looked into this issue for a while now and I have a solution that may work for you. When using the Polylang plugin, kindly follow this guide to enable the gallery to be visible on the original and translated pages.
First, before you create the gallery in FooGallery, after installing the Polylang plugin, head over to your WordPress admin dashboard and navigate to Languages -> Settings tab. On the “Media” option, the “Activate languages and translations for media” MUST remain activated. However, on the “Custom post types and Taxonomies” options, click on Settings and ensure that on “Custom post types”, galleries MUST NOT be checked!
Once that is done, we’re going to assume that we have a number of images that will be added to the gallery whose caption/description are available in both the default language, which we’ll refer to as L1, and have been translated into the second language, which we’ll refer to as L2. With all that done, follow this guide to create both gallery pages of the two languages:
- In the topmost menu, switch from “Show all languages” to your site’s default language, L1.
- On the left menu, go to FooGallery->Add New Gallery. Enter a title, e.g. Test Gallery.
- Click the Add from Media Library button. Because we are in L1 language display mode, only those images available in L1 will be displayed. You can upload/import the images/videos you’ll want to be available in this language. Select the ones you want for your gallery. Click Publish gallery
- In the topmost menu, you can now switch from your site’s default language, L1 to “Show all languages”.
- Now create a new post (or page), name it Test post L1. It’ll have the gallery in the original language, L1. In that post, insert Test Gallery which is available from the menu bar list. Save.
- Create a translation of that post/page, name it Test post L2. In that post, insert Test Gallery 01 which is available from the menu bar list. Save.
- Visit your site and switch from L1 to L2, and check that the images from Test Gallery on the Test post L1 page have their caption/description in the L1 language and on the Test post L2 page have their caption/description in the L2 language
Kindly follow this guide while using Polylang to create a multilingual website and let us know how it goes.
Thanks.
Kind regards,
Elvis.