This plugin let's you add Woocommerce product reviews on a page/post using shortcode. You can specify reviews per product basis, exclude specific reviews, limit the number of reviews displayed and more. There are three layouts. Slider and List and Masonry. The plugin is responsive and easily customizable.
Use the following shortcode to display reviews from all products:
[twb_wc_reviews]
Allowed Attributes:
- product_id = Single product ID or comma separated list of IDs to display reviews from.
- number = To limit the number of reviews displayed.
- exclude = Exclude specific review/s by review ID.
- exclude_product = Exclude all reviews from a specific product or a number of products (comma separated list of product IDs).
[twb_wc_reviews product_id="" number="" exclude="" exclude_product=""]
The following shortcode will display upto 5 reviews from products with IDs 57,61,78
[twb_wc_reviews product_id="57,61,78" number="5"]
Similary the following shortcode will exclude reviews with IDs 2,6,10 and exclude all reviews from the products with IDs 45,55,12
[twb_wc_reviews exclude="2,6,10" exclude_product="45,55,12"]
To add in a theme template. Use the code below
<?php echo do_shortcode('[twb_wc_reviews]'); ?>
AND with attributes
<?php echo do_shortcode('[twb_wc_reviews product_id="" number="" exclude="" exclude_product=""]'); ?>
There are three layouts. Silder and List and Masonry
Slider Layout Includes:
List layout includes:
- One Column / Full Width Layout
- Two Columns Layout
- Three Columns Layout
Masonry layout includes:
- Two Columns Layout
- Three Columns Layout
In the plugin settings, you can also add Custom CSS to change the layout of the reviews displayed.
**Please rate if you like it :) **
Install the plugin and activate. Go to TWB Woocommerce Reviews options page under Settings menu and customize.
Display the reviews in a page/post using the following shortcode.
[twb_wc_reviews]
Allowed Attributes:
- product_id = Single product ID or comma separated list of IDs to display reviews from.
- number = To limit the number of reviews displayed.
- exclude = Exclude specific review/s by review ID.
- exclude_product = Exclude all reviews from a product or a number of products (comma separated list of product IDs).
[twb_wc_reviews product_id="" number="" exclude="" exclude_product=""]
The following shortcode will display upto 5 reviews from products with IDs 57,61,78
[twb_wc_reviews product_id="57,61,78" number="5"]
Similary the following shortcode will exclude reviews with IDs 2,6,10 and exclude all reviews from products with IDs 45,55,12
[twb_wc_reviews exclude="2,6,10" exclude_product="45,55,12"]
To add in a theme template. Use the code below
<?php echo do_shortcode('[twb_wc_reviews]'); ?>
AND with attributes
<?php echo do_shortcode('[twb_wc_reviews product_id="" number="" exclude="" exclude_product=""]'); ?>