Support » Plugin: Site Reviews » Integration in category pages

  • Resolved ranone

    (@ranone)


    What is the best way to integrate the reviews stars into the category pages and loop template as related_products or featured_products and etc..

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

    (@geminilabs)

    I don’t really understand this question.

    Is there any way to insert the reviews in the product list (on each product) of the categories?

    Plugin Author Gemini Labs

    (@geminilabs)

    You are trying to show the average rating of each product in a list of products?

    Have you tried something like this in the loop:

    <?= do_shortcode('[site_reviews_summary assigned_to=post_id hide=bars,rating,summary]'); ?>
    

    Or if you are using Site Reviews categories (replace ?? with the slug or ID of the Site Reviews category):

    <?= do_shortcode('[site_reviews_summary category=?? hide=bars,rating,summary]'); ?>
    
    • This reply was modified 8 months, 2 weeks ago by  Gemini Labs.

    Thanks you so much Gemini!

    It’s almost perfect! Is there any way to show only the stars for the products that actually have reviews?

    This is because products that have no reviews show 5 empty stars, which seem to be rated 0/5..

    Tks in advance

    Plugin Author Gemini Labs

    (@geminilabs)

    Add “if_empty” to the hide option on the shortcode. Please read the Shortcode Documentation on the Get Help page for more info.

    Oh, it’s true! I apologize but I got confused with [site_reviews] shortcode parameters…

    The plugin is very very TOP! 😉

    Plugin Author Gemini Labs

    (@geminilabs)

    @ranone Feel free to try out the unreleased (but stable) v3.0 beta: https://pastebin.com/raw/Mgr28aJs

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Integration in category pages’ is closed to new replies.