Hi Tom,
I’ve tried using exclude in the list pages array but I wasn’t sure how to exclude the current page. I tried excluding by ID but obviously that doesn’t work as the current page will change.
I’m using a different template file for one of the sub pages, as follows:
Parent page (template-about-landing-page.php)
> Child page 1 (template-about-sub-page.php)
> Child page 2 (template-about-sub-page.php)
> Child page 3 (template-directors.php)
Currently, the sidebar is pulling in Child pages 1 and 2 but it isn’t pulling through Child page 3. I just assumed that the cause of this is something to do with the fact that Child page 3 uses a different template.
Thanks.