【发布时间】:2021-03-18 00:56:36
【问题描述】:
我有一个自定义 wordpress 模板,我想在其中包含另一个模板。 基本上我有一个审核表单,我想在其中包含一个字段来编辑用户显示名称,并且该字段位于另一个模板中。
这是我的文件夹结构:
-
子主题/
用户显示名称模板.php
-
审阅模板文件夹/
review-template.php
-
我想在 review-template.php 中包含 user-display-name-template.php(即在子文件夹 review-template-folder 中) 获得此结果的最佳方法是什么。 感谢您的帮助。
【问题讨论】:
标签: php wordpress wordpress-theming