Background of the issue:
I'm trying to use the same GraphQL id for custom taxonomy for different languages and then filter by lang in where condition. The site I need help with is hidden link.
Symptoms:
No specific issue or error message mentioned.
Questions:
How can I use the same GraphQL id for custom taxonomy across different languages?
How do I filter by language in the where condition using GraphQL with WPML?
Have you registered the *graphql_single_name* and *graphql_plural_name* for the Custom Taxonomy? Refer to this doc for more details - hidden link
Please share the query you are using to list the custom taxonomy terms in the default language. Also, check whether the following sample query is working for you (you have changed the taxonomy name in the query).
query CustomTerms{
customTaxs(where: {language: "en"}) {
nodes {
name
id
slug
uri
}
}
}
--
Thanks!
Bigul
The topic ‘[Closed] WPML and GraphQL’ is closed to new replies.