Tell us what you are trying to do?
filter post by current lang
Is there any documentation that you are following?
no
Is there a similar example that we can see?
$args = array(
'post_type' => 'jobs',
'current' => max( 1, $paged ),
'paged' => $paged,
'posts_per_page' => 30,
'post__not_in' => $exclude,
'suprime_filters' => 0
);
$myPosts = new WP_Query($args);
You are using a custom query to display posts on your site. I would like to inform you that helping you with custom code, is out of the scope of WPML. But I suggest you can correct the argument: "suprime_filters" to "suppress_filters" and recheck this issue.
If you are not able to accomplish this, I would recommend you contact one of our certified partners that will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Look forward to your reply.
Thanks
The topic ‘[Closed] Query posts return all language’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.