如何激活从get_post_field()读取的内容?

我通过此代码从循环中打印帖子内容(WordPress)

echo $content= get_post_field('post_content', $projects_posts[($i*3)+$j] ->ID );

内容显示没有问题, 但是当我使用”阅读更多”选项时, 该选项不起作用, 内容显示完整

在此处输入图片说明

#1


这似乎是一个愚蠢的问题, 但是你是在单个帖子还是在存档/索引页面上使用它?询问是因为”更多”标签不适用于单个帖子, 仅适用于列出多个帖子的存档/索引页面

来源:

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