AI助手支持GPT4.0
Allows theme authors to include templates that will be automatically used based on the page’s parent.
允许主题作者包括将根据页面的父级自动使用的模板。 p>
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.
例如,将文件“ page-123.php”添加到主题目录中的“ child-page-templates”文件夹中,将为ID为#123的页面的所有子页面定义模板。
You can also do the same thing with the post’s slug.
您还可以对帖子的内容进行同样的操作。 p>
This template file will be used for all pages that are children of the page with ID #123:
此模板文件将用于ID为#123的页面的子页面的所有页面:
/wp-content/themes/your-awesome-theme/child-page-templates/page-123.php
/wp-content/themes/your-awesome-theme/child-page-templates/page-123.php p>
This template file will be used for all pages that are children of the page with the “team” slug:
此模板文件将用于所有带有“ team”子句的页面的子页面的页面:
/wp-content/themes/your-awesome-theme/child-page-templates/page-team.php
/wp-content/themes/your-awesome-theme/child-page-templates/page-team.php p>
ul>
li>
ol>
原文出处:http://www.sanshu.cn/a/7197.html
群主管理都是支付大佬