Retrive custom posts of all languages
-
Hi,
first of all sorry for my english and if this question is already answered.
My website have 5 different languages and I have a page that have to contain all this posts in all the different languages.
I’m using wp_query like this:
$type = 'resource'; $args=array( 'post_type' => $type, 'lang'=>'', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1); $my_query = null; $my_query = new WP_Query($args);
And now the query returns me all languages, but if I change lang with en_GB or another language it returns me the same posts.
I’d like to put the languages selected by user in an array, than filter the posts by languages.
Do you have any idea?
thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Retrive custom posts of all languages’ is closed to new replies.