Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 1 year, 11 months ago.

Assisted by: Bobby.

Author Posts
August 15, 2023 at 6:39 pm #14204933

Sean

Basically, we are trying to sync the media library so when we add an image, its available in both languages.

We initially had the When uploading media to the Media library, make it available in all languages setting, which would duplicate all images uploaded. However the issue is if we delete an image on one language, it won't delete it on the other language, causing the media library to become out of sync over time.

We thought maybe completely turning off media translation settings would work, and we would just upload the English media library, but then we dont have access to those images when editing French pages.

Any help would be appreciated!

August 17, 2023 at 5:40 am #14242123

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please try this:

Go to WPML->Settings-> Posts and pages synchronization and enable "When deleting a post, delete translations as well" then Go to the language that the image was uploaded to first -- most likely the default language and delete the image from there, that should resolve this issue

If you do not delete it from the language it was uploaded to first it won't delete the rest.

The way the WPML Media works is that it creates a database entry per media per language so if the media is deleted in the secondary language the entries will still remain.

Let me know your results, please.

August 18, 2023 at 2:23 pm #14253149

Sean

Hi, Thanks for this info!

Is it possible to have this option for media only? Ideally we wouldnt want this behavior on all posts and post types.

August 18, 2023 at 7:07 pm #14254913

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Unfortunately, it is not at the moment. A workaround I could suggest would be to activate/deactivate this option when you need to do a media delete but I do understand that adds an unnecessary step to the process.

What I can do is add this ticket as a feature request for our team to review and possibly consider in the future.

August 24, 2023 at 1:59 pm #14286201

Sean

Thanks for the info.

Would I be able to track this feature request anywhere?

August 24, 2023 at 11:10 pm #14288397

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

There is no tracking available, however, we will update you here on this ticket.