We're using the excellent polylang to translate our website content and themes , there are a range of options about which fields and settings are duplicated between paired pages.
We've selected to duplicate all custom fields, featured images etc, but clearly not the main page title, excerpt or content , as this is the real textual content that needs to be translated.
We have a lot of content to add, and most pages have a large gallery , which we're adding using the native WP
[gallery] shortcode and the gallery builder , nothing special.
I imagined that the shortcodes in the post_content would be easy to simply copy and paste to the connected posts - however, while the
[gallery] shortcode can be copied and appears correctly in the new post editor screen, it is not recognised , it appears as an empty gallery.
So, my next guess was that WP was adding a gallery post type or adding some post_meta when each gallery was saved , but I can't see anything being added to either table when a new gallery is created and saved.
So , my questions is where and how are galleries saved and connected to the post - and how can I hook it this action to also build a connection to another post, or to make the gallery more portable between posts?
I've checked the post_type attachment and post_meta added to each image uploaded , this only contains the path to the image and the information about the various
image_sizes and additional exit data from the image...