Hi there,
I’m looking to retrieve the data from a subpage of one of my site’s parent pages.
The page in question is one of two subpages, specifically created to act as two subpages of a parent page. The URL structure is as follows.
Parent page: siteurl/shows
Child page 1: siteurl/shows/featured
Child page 2: siteurl/shows/latest
All pages are working fine, the problem occurs when I want to attach/retrieve data from a specific subpage. I don’t know I need to create a .json.php file to serve JSON data from subpages? When I do this as I would for a single show page ( siteurl/shows/showname this works fine with show.json.php) nothing comes out in siteurl/shows/featured.json expect for the following:
{
title: "Featured",
text: {
html: ""
}
}
Any direction on this would be much appreciated.
Many thanks
George