WPML
Use Media Cloud with WPML media translations, including per-language file copies and attachment metadata fixes.
2 min read·2 tags
Media Cloud includes WPML compatibility for translated attachments. It prevents translated images from sharing one storage object that a translation deletion could remove.
There are no WPML-specific settings in Media Cloud. The compatibility code activates when WPML is active.
What the integration does
- When a translated attachment needs cloud metadata, Media Cloud copies the original file and its generated sizes into a language-specific folder in the bucket, for example:
2026/01/photo.jpg
2026/01/photo.jpg → 2026/01/fr/photo.jpg
- The translated attachment’s metadata points at the language-specific copy.
- URL and attachment lookups use WPML’s
wpml_object_id, so the correct translation is rendered. - Deleting a translated attachment does not delete the original language’s file.
Requirements
- WPML must be active.
- Cloud Storage must be enabled.
- The storage provider must support copying objects. If a copy fails, Media Cloud logs the error and leaves the original metadata in place.
Working with translated media
- Translate the attachment with WPML’s media translation workflow.
- Open the translated attachment and confirm its URL contains the language segment.
- If a translated file is missing from storage, run Verify Library and check the report.
- If metadata is missing, run Fix Cloud Metadata on the affected attachments.
Notes
- Media Cloud does not duplicate every attachment proactively; copies are created when the translated attachment’s metadata is requested.
- Changing the storage provider or bucket does not migrate the language-specific copies automatically. Re-run your migration or media translation workflow after a move.
- Clear caches after changing WPML languages or attachment translations.
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.