如何在不切换主题的情况下添加新的Wordpress页面模板?
每当我向主题添加新的页面模板时,我知道如何使其显示在列表中的唯一方法是切换到不同的主题,然后切换回来。我想知道是否有一种方法可以重置主题页面选项而不进行此黑客操作?
Whenever I add a new page template to my theme, the only way I know how to get it to show up in the list is to switch to a different theme and then switch back. I am wondering if there is a way to reset the theme page options without doing this hack?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常发现切换到不同的页面或帖子会显示任何新模板。
确保您的模板位于主题目录中。
I usually find that switching to a different page or post reveals any new templates.
Make sure your templates are in your theme directory.