Hi, Thank u!
I wait when you have time 🙂
But… looking for a solution and leaning better how WP and pluging work (but i’m totally not expert of php!) I found a query on Polylang site.
for french language
$posts = get_posts( array(
‘post_type’ => ‘post’,
‘lang’ => ‘fr’, // use language slug in the query
‘showposts’ => 5,
) );
OR
for French and Germany
$posts = get_posts( array(
‘post_type’ => ‘post’,
‘lang’ => ‘de,fr’, // query German and French posts
‘showposts’ => 5,
) );
It seems to me similar to the one you use on your .php codes with one more param ‘lang’
I can suppose it should be inserted in $query_args …
Of course probably it’s necessary to extract the languages of the site (foreach…) and then the post inside each language with your…
foreach ( $query as $value ) {
$located = $value;
}
All the best! 🙂
ops solved using the PLUS button instead of cloning post
My mistake! I have not cloned correctly page using the “plus” for each language
SOLVED