Child Page Templates
v1.0.2j · 2012年9月28日 上架
Allows theme authors to add page templates to their themes that will be automatically used based on the page's parent.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 4,606
- 最近更新
- 2012年9月28日
贡献者
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