如何将自定义wordpress页面模板保留在主题文件夹以外的其他文件夹中

我有许多自定义的wordpress页面模板, 我想将它们保存在不同的文件夹中。喜欢/ pages /

但是, 问题是, 当我将它们保留在主题文件夹以外的其他文件夹中时, 自定义页面选项将从wordpress页面模板菜单中消失。

如何将页面模板保留在不同的文件夹中, 并仍然在wordpress页面模板菜单中访问它们?


#1


你要使用子主题。

http://codex.wordpress.org/Child_Themes


#2


我实际上发现你至少可以在WordPress 3.1+中将自定义页面存储在文件夹中。它们仍显示在编辑器页面的长列表中, 但是允许你将它们分类, 以便节省空间, 使文件夹名称简短也很方便。

来源:

https://www.srcmini02.com/65389.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37288.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?