Background of the issue:
I am trying to fix issues with Offload Media (duplicated entries in the database) on a site under development. They suggest untoggling certain settings in WPML Media Translation.
I can't find any documentation explaining what these settings actually do.
I have observed that with the "future conent" options untoggled :
- when I upload two images, translate them,
- use them in the content and as featured images of a post,
- then duplicate the post,
I get both images (content and featured).
However, when I translate the post through the editor, I get the content image but not the featured one.
I have also provided a video for reference (I skipped some unecessary parts, but there are other no actions in between): hidden link.
Symptoms:
featured images not being copied when translating posts through the editor.
Questions:
What do the settings
'Duplicate existing media for translated content',
'Duplicate the featured images for translated content',
'Duplicate media attachments for translations',
'Duplicate featured images for translations' actually do?
Why the featured images aren't copied when translating posts through the editor with the future options untoggled, while the content images are?
After running some additional tests, here is what I found.
1. When you insert an image file into a page content, it copies over to the translation and the image meta shows in the advanced translation editor.
2. If you have a translation for an image in WPML -> Translation Media and you check the boxes to duplicate media (featured and uploaded), the media translations will show in the translated page.
3. If you don't have the featured image check box selected on the page edit screen, the featured image will not copy and it will not show a translation if there is one in media translation. To get it to show, you should check the box to duplicate featured image in the page edit screen in the original language.
So the best steps to take would be the following:
1. Add your media file translations in WPML -> Media Translation
2. Check the boxes in the page edit screen to duplicate uploaded media and featured image media
3. Update or create the translation.
Feel free to use the link for my staging site and test other options if you like. This link will log you in: hidden link