Home  >  Article  >  Backend Development  >  求 wordpress有关问题.根据文章id得到该文章评论的请求方式

求 wordpress有关问题.根据文章id得到该文章评论的请求方式

WBOY
WBOYOriginal
2016-06-13 10:46:50688browse

求 wordpress问题.根据文章id得到该文章评论的请求方式
求 wordpress问题.根据文章id得到该文章评论的请求方式;
具体:
想在列表页面点击查看文章评论然后jquert获取评论展开评论.
没研究过wp 试了几个链接不行的.不知道怎么写了.先成的函数最好.
实在不行就自己写函数 读SQL了

------解决方案--------------------
你ajax请求数据库,评论的表是wp_comments,然后根据文章的id(数据库中字段是comment_post_ID)获取对应的数据就可以了啊。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn