WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Child Page Templates

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

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

Requires: 3.3 or higher
Compatible up to: 3.4.2
Last Updated: 2012-9-28
Downloads: 1,479

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.