• Resolved androidgmae

    (@androidgmae)


    I want to show only the count and value at a particular place in the post, is there any way to get the count and value from the star rating?

    any shortcode or code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Kamal Khan

    (@bhittani)

    Via php code in your theme file:

    <?php
      $ratings = \Bhittani\StarRating\core\functions\data();
      echo $ratings['score'];
      echo $ratings['count'];
    ?>

    For me this code dont work i am add in single.php file and they show only 00 no stars for vote nothing just 00 with this code they show rating but they dont show score

     <?php echo kk_star_ratings() ?>
    Plugin Contributor Kamal Khan

    (@bhittani)

    @markezi This has been fixed in 5.4.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to get only count and value?’ is closed to new replies.