Passer au contenu Passer à la barre latérale
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 -

Fuseau horaire du support : Europe/Vienna (GMT+02:00)

Ce sujet contient 0 réponse, a 1 voix.

Dernière mise à jour par moscoviumA Il y a 2 mois et 3 semaines.

Assisté par: Bigul.

Auteur Messages
mai 14, 2025 à 3:35 pm #17033429

moscoviumA

Background of the issue:
I am working on a new WordPress Headless UI framework using WPGraphQL and trying to get WPML working for multilingual support. I have the following plugins installed: WPML GraphQL v1.1.3, WPML Multilingual CMS v4.7.2, WPML String Translation v3.3.2, WooCommerce Multilingual & Multicurrency v5.4.5, WPGraphQL v2.3.0, WPGraphQL Content Blocks v4.8.2. I am a paying member at WPML.org. I am trying to use nodeByUri queries to retrieve translated posts. This query works: `query PostBySlug { post(id: "/pt-br/outro-artigo-com-meta", idType: SLUG) { title slug uri } }` But nodeByUri does not work with a translated slug: `query GetTranslatedNodeByUri { nodeByUri(uri: "/pt-br/outro-artigo-com-meta/") { id uri } }` I found a few posts online from prior years describing similar problems, but none of the solutions offered have worked. Link to a page where the issue can be seen: lien caché

Symptoms:
nodeByUri queries are not retrieving translated posts when using the full path with the locale prefix. The query returns null: `{ "data": { "nodeByUri": null } }`

Questions:
Why does nodeByUri not retrieve translated posts when using the full path with the locale prefix?

What can I do to make nodeByUri work with translated slugs?

Le sujet « [Fermé] WPML + WPGraphQL nodeByUri queries not working » est fermé aux nouvelles réponses.