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?
I have escalate this to our 2nd tier support and will update here once I hear any feedback.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.