This worked excellent but since we've chosen to use the wpml setup 'Language URL format - A different domain per language' the images only show up in the native/default language of the wp installation.
(we use .eu domain to point EN (default) and a .nl domain to point dutch).
A page with images (default language): hidden link
A page without images (NL translation: hidden link
When I check the html of the NL translation, there is no image loaded as well...
(the featured image is loaded with this wpml setup - the issue happens in the script Shane helped us to setup).
Is there something we're missing?
Is it possible the images are not loaded because the browser thinks it's coming from another domain?
Or is it possible to make the images relative?
It might be a WPML issue as well, hope Toolset can help us to make it work...
Hello. Thank you for contacting the Toolset support.
Actually - the code Shane shared looks correct but the issue is happened after you installed the WPML and made changes accordingly.
I would like to know - you want to display the same images which is displayed with default language?
Have you translated your media?
Can you please share wp-admin access details so I can check what's going wrong there?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Unfortunately - SFTP access details not working at this end and I do not have rights to edit the custom code added at "Custom Code" section offered by Toolset where Shane added the code.
I need a way to access that code - can you please grant me the rights so I can proceed further.
Thats really great!! Thanks.
Can you tell me what was the adjustment / difference in the old vs new code?
We have another site with this issue, so I can make the changes there myself...