This thread is resolved. Here is a description of the problem and solution.
Problem: I need to change the query language
Solution: You can change the language before executing the query by adding these lines:
global $sitepress; $lang='fr'; $sitepress->switch_lang($lang);
Then add the query you need.
This will allow your query to get posts from 'fr' .
- Find more information on WP_query and how it is used in WordPress.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.