WordPress.org

Forums

WP-PostRatings
[resolved] How to Display "Total Users Voted" in the sidebar (5 posts)

  1. lasislas
    Member
    Posted 1 year ago #

    Thanks you for this amazin plugin! :)

    How can i display the number of "Total Users Voted" in the sidebar which appears actually on the page: admin.php?page=wp-postratings/postratings-manager.php (Post Ratings Logs Stats)

    Many Thanks!

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

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    You need a widget that can execute PHP code like http://wordpress.org/plugins/php-code-widget/ and use the PHP code <?php get_ratings_users(); ?>

  3. lasislas
    Member
    Posted 1 year ago #

    Thank you, that works very well!

    One last question:

    How can I display the total number of users rated for a specific (like %RATINGS_USERS%) in my index.php (below each post)?

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    <?php echo get_post_meta( get_the_ID(), 'ratings_users', true ); ?>

  5. lasislas
    Member
    Posted 1 year ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.