Site Reviews does not provide this feature. You will either need to use a carousel /slider plugin that can accept a shortcode as the slide text, or code it yourself using the Site Review helper functions.
1. To use the shortcode with a slider plugin:
Slide #1: [site_reviews count=1]
Slide #2: [site_reviews count=1 offset=1]
Slide #3: [site_reviews count=1 offset=2]
Slide #4: [site_reviews count=1 offset=3]
etc.
2. To manually code the carousel yourself:
if( function_exists( 'glsr_get_reviews' )) {
// See the Site Reviews "Helper Functions" documentation for more information
$reviews = glsr_get_reviews();
foreach( $reviews as $review ) {
// use the $review object to build your slide html.
// You can use glsr_debug( $review ); to see the available values
// Use glsr_resolve( 'Html' )->renderPartial( 'star-rating', ['rating' => $review->rating] ); to render the star rating
}
}
-
This reply was modified 6 years, 11 months ago by
Gemini Labs.
-
This reply was modified 6 years, 11 months ago by
Gemini Labs.
-
This reply was modified 6 years, 11 months ago by
Gemini Labs.
-
This reply was modified 6 years, 11 months ago by
Gemini Labs.