I am trying to:
Only show dutch events on the dutch website. But once I publish a English event it still gets posted on the dutch website. I tried suppress_filters.
Link to a page where the issue can be seen: hidden link
I expected to see:
Only the Dutch events on the dutch website.
Instead, I got:
Not see the English webinar on the dutch website.
I can see one event in English in the link you provided here. Please see the attached screenshot. In the same section, I don't see any Dutch events at all.
Can you please share with us the code that you have to output this?
The wpml_object_id returns an element’s ID in the current language or another specified language. You need to use it in your code. Please see the examples and adjust your code.
The following link to our guide on Debugging Theme Compatibility can also help you fix the problem. See the Issue: wp_query($args) or get_posts($args) doesn’t filter out correct posts IDs for the current language.
You might be using suppress_filters incorrectly, and you need to use it like this:
suppress_filters=0
Please let me know if this information is helpful to you.
Regards,
Itamar.
The topic ‘[Closed] My WP_query isnt filtering on Dutch or English. My shortcode is showing both.’ 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.