• I read about page hierarchy, and unless I’m reading the chart wrong, it appears that a singular static page with a default template setting first seeks a page template of page-$slug.php, then page-$id.php, and in the absence of those it ends up with the page.php template.

    So I copied page.php and saved it in my child directory, naming it page-$kids.php, since the slug in my kids page is “kids”. I then modified the get sidebar comment in page-$kids.php in order to get a sidebar I created. Nothing happened.

    I have created a custom page of another name and have called this particular sidebar in that page. So I know it works. I just thought I’d try another (simpler) way to call that sidebar without having to create another template. Why doesn’t this work? Am I missing something?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom page’ is closed to new replies.