Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needs to ensure that image meta fields are automatically translated in such a way that the image remains the same across all languages, both when using automatic translation and when manually translating posts or taxonomies.
Solution:
1. To ensure images are available in all languages when using automatic translation, navigate to WPML > Settings > Media translation. Verify that the images exist in all languages by checking in Media > All and switching between languages. This setting uses the same file but ensures the image exists in the database for all languages.
2. For manual translations where you want the image to be set automatically, go to WPML > Settings > Custom fields, find your custom field, and set it to COPY. This will copy the same image IDs to your translated posts.

If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket at WPML support forum.

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: 

This topic contains 1 reply, has 0 voices.

Last updated by Dražen 1 week, 2 days ago.

Assisted by: Dražen.

Author Posts
March 23, 2025 at 1:02 pm #16848666

Hichem Hamdani

Background of the issue:
My site uses multiple custom taxonomies and custom post types.
Each post type and taxonomy has several several images:
- WordPress default featured image
- Custom meta fields for images with value stored as image IDs.

In my use case, all images (featured and custom meta fields) of posts and taxonomies should be the same on all languages. So my questions are:

1. When using automatic translation, which setting should I enable to ensure that these image meta fields are automatically translated? Please keep in mind that translating in this case means that the image should be the same in original and translated language.

2. If I choose to translate a post or taxonomy manually, is there a setting that would still set the image automatically ? I mean retrieve the values of the image custom fields from the original post.

Symptoms:
I need to ensure that image meta fields are automatically translated, meaning the image should be the same in the original and translated language.

Questions:
When using automatic translation, which setting should I enable to ensure that these image meta fields are automatically translated?
If I choose to translate a post or taxonomy manually, is there a setting that would still set the image automatically by retrieving the values of the image custom fields from the original post?

March 25, 2025 at 8:41 am #16855300

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

1) Make sure your images are available in all languages, from WPML > Settings > Media translation. Check from Media > All, and by switching languages. It still uses same file, just image (in DB) need to exist in all languages.

2) From WPML > Settings > Custom fields, find and set you custom field to COPY.

Now it should copy same IDs to your translated posts, and should work fine.

Regards,
Drazen