我刚刚在WordPress中遇到了一个小问题, 但很奇怪。我制作了一个名为” nyheter”的页面(在挪威语中翻译为新闻), 在该页面上我创建了一个自定义页面, 该模板的模板文件夹中包含一个” page-nyheter.php”, 我想在该页面上显示网站上的所有帖子。
请记住, 我不想在我的首页上显示任何帖子。
我也有一个自定义的静态首页, 它只是” front-page.php”, 可以很好地导航到该首页。但是, 选择我的首页作为主页, 并在设置中将” nyheter”页面作为发布页面, 最终也会在” nyheter”页面上显示主页。其他所有页面均正常运行, 如果我仅从自定义帖子页面中删除” nyheter”页面, 则该页面再次正常运行。
我到底在做什么错?有人可以帮我吗?
#1
帖子页面将使用index.php作为其模板, 静态首页将使用front-page.php
#2
Nyheter页面是否由帖子驱动?为什么不使用index.php, 因为它比页面模板更适合于帖子。
https://wphierarchy.com/
#3
如果你是开发人员, 请启用wp_debug为true。然后检查你的错误。
来源:
https://www.srcmini02.com/66071.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_37150.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57