Support » Plugin: WP-PostRatings » How to display only Score

  • Hello,
    I just want to know that how I can display score, no images and no other text only numeric text. Like i want to display post rating score only (2) (5). Only numeric words.

    Any shortcode to display Template Variables in php file.

    • This topic was modified 5 years, 2 months ago by Xaib Aslam.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Xaib Aslam

    (@lahorimela)

    And also please tell me that what if we dont want to show schema of Article, we just want to show rating schema?

               <?php
    if(is_front_page() || is_home()):
    echo the_ratings_results(get_the_ID());
    endif;
    ?>
    Thread Starter Xaib Aslam

    (@lahorimela)

    @luquerias I try your code but its displaying same thing.

    https://prnt.sc/m5oaas

    • This reply was modified 5 years, 2 months ago by Xaib Aslam.
    Thread Starter Xaib Aslam

    (@lahorimela)

    Any help??????

    Thread Starter Xaib Aslam

    (@lahorimela)

    Still looking for help…

    Plugin Author Lester Chan

    (@gamerz)

    All the permutations are in WP-Admin -> Ratings -> Ratigns Template. And it is a global template, so it will affect all the ratings display.

    To get just the score, use <?php echo get_post_meta( get_the_ID(), 'ratings_average' ); ?>

    If that is not what you wanted, then I am sorry that is not what the plugin is designed for.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to display only Score’ is closed to new replies.