Allows theme authors to add page templates to their themes that will be automatically used based on the page's parent.
Author: | Joe Anzalone (profile at wordpress.org) |
WordPress version required: | 3.3 |
WordPress version tested: | 3.4.2 |
Plugin version: | 1.0.2 |
Added to WordPress repository: | 28-09-2012 |
Last updated: | 28-09-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://JoeAnzalone.com/plugins/child-page-tem... |
Total downloads: | 2 553 |
Active installs: | 10+ |
Click to start download |
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
FAQ
ChangeLog