Forum

Thread tagged as: Question, Field-Types

Content from child pages

Hi,

I have a parent page called Brands and Child pages Brand 1, Brand 2, Brand 3. How can I display content from those pages on my Brands page?

I need to display the title off each sub page and then a custom field which has locations relevant to the children pages, that have been specified on the child brand pages if that makes sense?

Fishtank Creative

Fishtank Creative 2 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

In perch_content_custom() you can target child pages with:

'page' => '/brands/*',
Duncan Revell

Duncan Revell 78 points
Registered Developer

I think there’s a similar answer on this thread (for getting the page titles):

https://forum.grabaperch.com/forum/08-21-2017-page-title-id-in-a-perch-html-template