Ask wordpress questions. ask wordpress questions based on the article id to get the comments from this article. obtain the request method for this article comment based on the article id. for details, click View article comment on the list page and jquert to get the comment. I have not studied wp and tried several links. I don't know how to write it. the first function is the best. I can't write the function to read the SQL by myself. ------ solution ------------------ ask wordpress. request method for this article comment based on the article id
Ask wordpress questions. obtain the comment request method based on the article id;
Details:
To view comments on the list page, click jquert to get comments.
I have not studied wp and tried several links. I don't know how to write it. The first function is the best.
I can't write the function to read the SQL statement myself.
------ Solution --------------------
In your ajax request database, the comment table is wp_comments, and then you can obtain the corresponding data based on the article id (the field in the database is comment_post_ID.