• Resolved Bubblechaz

    (@bubblechaz)


    Hi

    Was wondering is there a way to show all reviews of the current post? with an average review count
    Similar to this https://ps.w.org/site-reviews/assets/screenshot-12.png?rev=1685988 but just for that one post. would [site_reviews_summary assign_to=”post_id”] work?

    Also we have multiple authors on the site, so in the author.php is a loop of the authors posts, is it possible to show the average star rating in the loop too? (in fact this would be good to have on all archive pages) So something like
    $rating = get_post_meta($post->ID, “_glsr_ranking”, true);
    Then have it display the stars count or something like 4.6(star icon).

    Any advice would be greatly appreciated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    1. To show a summary for the current post:

    [site_reviews_summary assigned_to=post_id]

    Make sure you also assign the post_id when reviews are created for this to work.

    i.e. [site_reviews_form assign_to=post_id]

    Please read the “Site Reviews > Get Help > Documentation > Shortcodes” for more information on available shortcode options and what they do.

    2. To add the summary shortcode in the loop:

    echo do_shortcode( "[site_reviews_summary assigned_to={$post->ID} hide=bars,summary]" );

    • This reply was modified 6 years, 9 months ago by Gemini Labs.
    • This reply was modified 6 years, 9 months ago by Gemini Labs.
    Thread Starter Bubblechaz

    (@bubblechaz)

    Fantastic, Worked exactly like I wanted!

    Thank you!

    Great Plugin by the way!

    Plugin Author Gemini Labs

    (@geminilabs)

    Great! Please consider leaving a review. ??

    Thread Starter Bubblechaz

    (@bubblechaz)

    Sure thing ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show all reviews for current post with average review count’ is closed to new replies.