我可以将评论显示在主页上, 但是我遇到了3个主要的错误。这些错误之一是使用if语句消除的。我正在使用Yoko主题。在index.php中, 我在<?php之间插入了一个代码段get_template_part(‘content’, get_post_format()); ?>和<?php同时; ?>。插入的代码是:<?php if($ withcomments!= 1){$ withwithments =” 1″; comments_template(); }?>。
我遇到的问题是, 第一篇博客文章的评论显示在文章本身之外。另一个问题可能与显示评论无关, 因此我将不在此处发布, 但其中涉及一些与评论重叠的图片。你可以在www.flyfishingpursuits.org上查看(如果仍然存在)问题所在。请不要在页面上发表任何评论。我正在为其他人这样做, 请保持你在网站上的”足迹”不存在。谢谢。
#1
我会使用wordpress get_comments()函数
http://codex.wordpress.org/Function_Reference/get_comments
来源:
https://www.srcmini02.com/62723.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_37747.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57