Is there a way to get translated pages by nodeByUri?
I'm using Astro JS and in my language folder have a [...slug].astro file which has the following code which essentially should look for all page in French and then separately get the page by its URI and pass all the relevant data. However, it seems you cant use nodeByUri to filter through translated pages so it executes an error :
Can you think of a work around?
---
import type { Block } from '@wp-block-tools/styles';
import BlockRenderer from '@components/BlockRenderer.astro';
import CommonHead from '@components/CommonHead.astro';
I have checked the related code but not sure if you are using any extra code or addon that may be causing this. Please note we can not help with debugging custom-coded solutions, for this, we recommend WPML Contractors (https://wpml.org/contractors/).
We will do the best we can to help out and advise you.
2) Does the issue happen with simple examples and by following our docs, using only WP default theme and WPML? I am asking to see if this can be reproduced in simple test site from scratch.
3) I see a similar report on the next link, please check if it is helpful:
- hidden link
Regards,
Drazen
The topic ‘[Closed] Calling translations using nodeByUri in graphQL?’ is closed to new replies.