• Resolved webkas

    (@webkas)


    Hello, I need to write some code to retrieve some post data from database, but get_post_meta() and get_comments() functions doesn’t return post rating.
    How can I do that?

Viewing 1 replies (of 1 total)
  • Plugin Author Fahid Javid

    (@fahidjavid)

    Hi!

    Each comment is a review of a post. So, the rating value is saved as a comment meta that can be retrieved using the ‘rating’ key from the comment meta.

    Here is an example:

    Thanks,

    Fahid

    • This reply was modified 9 months, 3 weeks ago by Fahid Javid.
Viewing 1 replies (of 1 total)
  • The topic ‘How can I get rating from database?’ is closed to new replies.