Typecho中单篇文章评论调用
<?php
$parameter = array('parentId' => $this->cid, 'parentContent' => $this->row,'respondId' => $this->respondId, 'commentPage' => $this->request->filter('int')->commentPage);
$comments = $this->widget('Widget_Comments_Archive@' . $this->cid, $parameter);
?>
不过这个有个分页的问题(可能获取不到全部评论). 可以自行重载Widget_Comments_Archive类做下修改。
附:分页实现自动下拉效果
自动下拉分页的方法使用Google搜索:jquery.infinitescroll
扩展阅读:
简而美提供
《首页单篇文章调用评论》从蚂蚱的【使用】分类中转载而来
Relay Tips: 一极乐( https://yijile.com/log/159/ )