Support » Plugin: Reviews Plus » show total review (star) at front page template

  • hello. firstly its a nice plugin you created. i really love it.

    i need help to show total review (star) at front page for my theme.

    example

    example

    any code to let it happen?

    thank you

    • This topic was modified 2 years, 8 months ago by  aculnetwork.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor ndre

    (@ndre)

    Hi,

    Thank you for using Reviews Plus!

    You can show the total review of each entry with the following code:

    <?php 
    $post_id = get_the_ID();
    echo ic_get_review_totals_html( $post_id ); 
    ?>

    We will also add a shortcode for this in next version.

    • This reply was modified 2 years, 8 months ago by  ndre.

    thank you for your reply. unfortunately its not exactly what i really want.

    from the code it show result in table.

    example

    can the review total display a star result?

    need something like this

    example 3

    thank you.

    So is there a piece of code to enable you to display the total/average rating in star format?

    I would like to know too.

    Thanks

    Plugin Contributor ndre

    (@ndre)

    We just released a new version that includes this.

    You can now use a shortcode:

    [average_rating]

    or a code in your template files:

    <?php echo ic_reviews_average() ?>

    • This reply was modified 2 years, 8 months ago by  ndre.

    This is great! Just tested it out a little in my theme and seems to work well using the shortcode. Thank you!

    • This reply was modified 2 years, 8 months ago by  toolsavvy.

    thank you. its not working with php code but its work well with the shortcode 🙂

    I tried this shortcode but it only shows empty stars (outline) on all pages except the page with the actual reviews on.

    Thanks
    Denise
    I am trying to use this plug-in for reviews of a service not products.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘show total review (star) at front page template’ is closed to new replies.