Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

fturcheti on "[Plugin: Polylang] Get images attached to default language"

$
0
0

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?

http://wordpress.org/extend/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>