This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to display a list of posts using WP_Query in the site's current language, but the query returns posts in the default language.
Solution:
To ensure that WP_Query returns posts in the current language of the site, you need to modify your query arguments. Specifically, add
"suppress_filters=0"
to your arguments in the WP_Query or get_posts function. This change will allow WP_Query to filter the posts according to the current language.
For more detailed guidance on achieving WPML compatibility with your themes and plugins, please visit: WPML Theme and Plugin Compatibility
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.
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.
This topic contains 1 reply, has 0 voices.
Last updated by 1 month, 2 weeks ago.
Assisted by: Andrey.