BACK TO DIRECTORY

Child Page Templates

by j

0.0
(0 ratings)

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

Plugin Details

Active Installs
10
Total Downloads
4,277
Version
1.0.2
Requires WP
3.3
Requires PHP
Tested Up To
3.4.2
Added
2012-09-28
Last Updated
2012-09-28 1:28am GMT

Ratings

5
0
4
0
3
0
2
0
1
0