I have posts published in Portuguese with images attached and posts translated to English without images attached.
In the posts single pages, if the current language is English, I want to get the images attached to the Portuguese version.
I'm trying to implement this looking for the Portuguese post ID (pll_get_post($post->ID, 'pt')) and using it as the 'post_parent' argument in the query where I get the images, but this is not working. The 'post_parent' that I set, Portuguese post ID, is ignored and the query executed with the English post ID.
How can I bypass this?