WordPress.org

Forums

WP-PostRatings
[resolved] Get just the number of votes per post (4 posts)

  1. VSotiris
    Member
    Posted 9 months ago #

    Hello! Is there any way to get just the number of votes of a post?

    https://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    get_post_meta( 'ratings_score', $postID, true )
    get_post_meta( 'ratings_users', $postID, true )
    get_post_meta( 'ratings_average', $postID, true )

    2nd line of code

  3. VSotiris
    Member
    Posted 9 months ago #

    thanks! while the sequence is first the postID and then the meta :)

  4. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    get_post_meta( $postID, 'ratings_score', true )
    get_post_meta( $postID, 'ratings_users', true )
    get_post_meta( $postID, 'ratings_average', true )

    Ops my bad, remembered wrongly. Created this post so that people searching can find the answer =)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.