Problem with the image links in other languages (WPML add-on)
-
Hi,
I use the WPML add-on to create feeds in the different languages of my website but there is a problem with the images links (and with the additional image links) when you introduce the feed in Google Merchant Center.
Google Merchant center says that the image links are incorrect so I digged into the issue and found that in the feed the image links look like that (my website is in French and translated in Dutch):
– In the French feed the image links are like this: https://www.mywebsite.com/wp-content/uploads/2019/01/nom-du-produit-1.jpg
– In the Dutch feed the image links are like this: https://www.mywebsite.com/nl/wp-content/uploads/2019/01/nom-du-produit-1.jpgSo I checked into the WordPress admin in Dutch (in the Dutch media library) and the “File Name” is “nom-du-produit-1” (so it’s the same name than in French), only the “Title” of the image is translated by WPML “naam-van-de-product-1” and in fact the link of the image is the same link as the image in French (so without “/nl” into the URL: https://www.mywebsite.com/wp-content/uploads/2019/01/nom-du-produit-1.jpg
So of course when the feed says that the image link is https://www.mywebsite.com/nl/wp-content/uploads/2019/01/nom-du-produit-1.jpg, Google doesn’t find the image.
So it seems that WPML doesn’t change the URL of the images (doesn’t add “/nl” to the URL of the translated images).
I don’t know if it’s a normal behavior but it’s like that on my website with WPML.Is it a problem in the generation of the feed or with WPML? And how to resolve it?
Thank you very much in advance for your help.
- The topic ‘Problem with the image links in other languages (WPML add-on)’ is closed to new replies.