wp_title显示页面标题,但不显示网站标题

我在任何地方都找不到这个问题的答案, 而且我很难相信我是唯一遇到此问题的人。

我的标题函数位于header.php的标题标签内, <?php wp_title(‘|’, true, ‘right’); ?>, 返回的是页面标题, 而不是网站标题。

示例:关于我们|

为什么不返回站点名称?


#1


我从未尝试将整个标题合并到一个函数中。相反, 我使用多个调用:

<?php wp_title(”); ?> <?php if(wp_title(”, false)){回声’|’; }?> <?php bloginfo(‘name’); ?>


#2


看起来wp_title()没有返回网站的标题。抱歉, 希望有人将从这个答案中受益。

来源:

https://www.srcmini02.com/67789.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_39890.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?