How to keep custom wordpress page templates in different folder other than the theme folder

99封情书 提交于 2020-01-24 23:05:12

问题


I have many custom wordpress page templates and I want to keep them in different folder. Like /pages/

But, the problem is when I keep them in different folder other than the theme folder, the custom page options disappear from wordpress page template menu.

How can I keep the page templates in different folder and still access them in wordpress page templates menu ?


回答1:


You want to use a child theme.

http://codex.wordpress.org/Child_Themes




回答2:


I actually found you can in WordPress 3.1+, at least, just store your custom pages in folders. they still display in the long list on the editor page, but do allow you to sort them into groups, for space saving, it's handy to keep the folder names short.



来源:https://stackoverflow.com/questions/4602079/how-to-keep-custom-wordpress-page-templates-in-different-folder-other-than-the-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!