在每个WordPress页面中显示不同的标题文本

我正在研究自定义的wordpress主题, 并且希望在标题部分的中间有标题/描述。标题/描述并非对所有页面都是静态的;我想从wp仪表板为每个页面设置它们。

有没有办法做到这一点? (不使用if / else语句)。


#1


你可以将参数设置为自定义字段, 请在此处阅读

通过使用get_post_meta(‘key’), 可以将其返回到代码中。

来源:

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