Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

This topic contains 0 reply, has 0 voices.

Last updated by Bigul 3 months ago.

Assisted by: Bigul.

Author Posts
March 28, 2025 at 3:58 pm #16873717

yassineT-2

Background of the issue:
I am working on a site under development using WPML with GraphQL and ACF. I have a GraphQL query: query getHomePage($id: ID!) { page(id: $id, idType: DATABASE_ID) { pageAccueilSectionSliderTrust { pageAccueilSectionSliderTrustIntitule pageAccueilSectionSliderTrustRelation { edges { node { id ... on Slider { title } } } } } } } When the id is a page in French, I get the relationship pageAccueilSectionSliderTrustRelation. However, when I request the page ID in English, I get nothing in pageAccueilSectionSliderTrustRelation, even though I've entered the relations to the CPT in English.

Symptoms:
The GraphQL query returns the expected relationship data for a page in French but returns nothing for the same page in English, despite having entered the relations in English.

Questions:
How is it possible that the relationship data is not returned for the English page?

Is there any specific configuration needed in WPML to handle GraphQL queries for different languages?

March 28, 2025 at 4:57 pm #16873981

yassineT-2

Hello,
Let me know what you need in order to solve this issue 🙂

March 28, 2025 at 5:20 pm #16874020

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our privacy information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

Also, it will be great if you can share the exact steps to reproduce the issue on your live site.

--
Thanks!

Bigul

The topic ‘[Closed] WPML GraphQL w/ ACF. Relation working in default langage but in another’ is closed to new replies.