网页上的WordPress显示内容摘要

我能够添加代码来创建关于二十七个主题的页面的摘录。我想知道如何将摘录放在首页部分而不是整个页面信息中。例如, 关于页面有3段信息, 但是我只希望3句摘录显示在首页上。

谢谢!


#1


你可以使用”页面摘录”插件。或者你可以使用” add_post_type_support(‘page’, ‘excerpt’);”为此, 添加功能文件。

来源:

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