Home Plugins child page templates
Child Page Templates logo

Child Page Templates

by j on WordPress.org

Allows theme authors to add page templates to their themes that will be automatically used based on the page's parent.

(0)

Allows theme authors to include templates that will be automatically used based on the page’s parent.

For example, adding the file “page-123.php” to the “child-page-templates” folder in your theme directory will define the template for all pages that are children of the page with ID #123. You can also do the same thing with the post’s slug.

This template file will be used for all pages that are children of the page with ID #123:
/wp-content/themes/your-awesome-theme/child-page-templates/page-123.php

This template file will be used for all pages that are children of the page with the “team” slug:
/wp-content/themes/your-awesome-theme/child-page-templates/page-team.php

Active installations10+
Weekly downloads
15-25.00%
Version1.0.2
Last updated9/28/2012
WordPress version3.3
Tested up to3.4.2
Tags
template hierarchythemes
Child Page Templates | Plugin0