Ask wordpress related questions. obtain the comment request method based on the article id.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.