Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

This topic contains 1 voice and has 0 replies.

>
Author Posts
December 2, 2024 at 9:46 pm #16468607

katarzynaT-5

Background of the issue:
I am encountering an issue with image translations in WPML. I use Rank Math to handle image translations (ALT text, titles, etc.), so WPML translating media is redundant for my workflow. However, I cannot disable all media (attachment) translations because when I add a new product and translate it, the image does not display if media translations are disabled. When I set the media to Translatable, WPML translates fields that Rank Math already manages, which creates unnecessary duplication. I need the appropriate line of code to prevent WPML from translating media (attachments) completely and ensure that the media duplication option works as intended so images are properly associated with translated products.

Symptoms:
When media translations are disabled, images do not display for translated products. Enabling media translations causes duplication of fields managed by Rank Math.

Questions:
How can I prevent WPML from translating media (attachments) completely?
How can I ensure that the media duplication option works as intended so images are properly associated with translated products?