• Resolved solerous

    (@solerous)


    I’d like to display the number of stars for a review in a widget from the child theme I’m working on.

    I tried something like:

    <?php echo get_book_review_rating(get_the_ID()); ?>

    And a few variations on that, but it didn’t work.

    Great plugin, overall. Best one I found.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter solerous

    (@solerous)

    Okay, actually I got it to work by using:

    $rating = get_post_meta( get_the_ID(), ‘rcno_admin_rating’, true );

    And then writing a custom function to display the stars on my own using the number from $rating[0]. I’m good with this solution, but if there is an easier way, feel free to mention it.

    • This reply was modified 6 years, 9 months ago by solerous.
    Plugin Author Kemory Grubb

    (@w33zy)

    Hello,
    Your solution of using get_post_meta() works well, since it is basically just a number. So if you can get the number without going through my function is OK.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display the star rating by itself’ is closed to new replies.