تخطي إلى المحتوى تخطي إلى الشريط الجانبي
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

المنطقة الزمنية للداعم: America/New_York (GMT-04:00)

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 1صوت.

آخر تحديث بواسطة ingridS قبل 3 أشهر، 4 أسابيع.

يساعده: Lauren.

الكاتب المشاركات
أبريل 9, 2025 في 7:51 م #16915155

ingridS

Background of the issue:
I am trying to filter posts by language using the WPGraphQL for WPML plugin in a GraphQL query. Specifically, I am using the where: { language: "it" } or where: { language: "es" } filter. The issue can be seen on the development site: الرابط المخفي. I expected to see only posts in Spanish (language: "es") returned in the response when I run the GraphQL query: query PostsES { posts(where: {language: "es"}) { nodes { slug uri categories {nodes {name }}}}}.

Symptoms:
The language filter where: { language: "es" } does not work as expected. The query returns posts regardless of the language, even though the WPGraphQL for WPML plugin is supposed to enable this filtering functionality. While translations and language codes are exposed in the response, the filtering by language in the schema is not working.

Questions:
Why is the language filter not working as expected in the WPGraphQL for WPML plugin?
How can I ensure that the GraphQL query returns posts filtered by the specified language?

الموضوع ”[مغلق] Issue with WPGraphQL for WPML plugin – language filtering not working“ مغلق للردود الجديدة.