Skip to content Skip to sidebar

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
- 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 -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Lauren 2 months, 2 weeks ago.

Assisted by: Lauren.

Author Posts
May 14, 2025 at 4:35 pm #17033841

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 } }`. Link to a page where the issue can be seen: hidden link

Symptoms:
The nodeByUri query does not work with a translated slug and returns null.

Questions:
Why does the nodeByUri query return null for translated slugs?
How can I get nodeByUri to work with translated content?

May 14, 2025 at 5:52 pm #17034036

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I have escalate this to our 2nd tier support and will update here once I hear any feedback.