I am building a Nuxt app that uses the WordPress REST API for content. All my other routes work fine, but I'm coming unstuck when it comes to nested pages.
I'm using the following structure in my Nuxt app:
pages
--- _slug
------ index.vue
In WordPress, an example would be:
How To Get There (slug: how-to-get-there)
-- Roads & Road Safety (slug: roads-road-safety)
I must be misunderstanding how routing works as this doesn't work and I get a 404 error when attempting to access the child page.
What is the correct way to route a child page from WordPress?
pages
structure ? – Tran Son Hoangpages
. you should point out children folder and file vue. So that I can help you. – Tran Son Hoang