Home›Support›English Support›[Escalated to 2nd Tier] unable to query a translated page by Uri with graphql's nodeByUri
[Escalated to 2nd Tier] unable to query a translated page by Uri with graphql's nodeByUri
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.
Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
We are using wordpress as headless CMS and trying to consume all it's data by graphql. For this we are using nodeByUri to get data for posts and pages by it's Uri (following this article: hidden link). Our default language is set as English. This is working for English Uri but not for translated Uri.
for example, nodeByUri(uri: "example-page") is working but nodeByUri(uri: "de/beispielseite") returned null.
This also apply in frontpage also. nodeByUri(uri: "/") is working but nodeByUri(uri: "de/") returned null.
But posts are working for both default and translated language.