Loop through or Query Woocommerce Reviews?

Hi guys

Struggling a bit - tried other plugins for reviews too but Bricks doesn’t show any of the content for them in the selectable loops - and when I fetch post types it doesn’t seem to like it.

So using normal Woocommerce Reviews - has anybody used Bricks Woocommerce pages with reviews at all?

I was hoping to loop some or create some sections / sliders - but can’t see to see anywhere in Bricks that lets you chose any review data from Woocommerce?

 <?php 
$args = array( 
    // args here 
); 
 
// The Query 
 
$comments_query = new WP_Comment_Query( $args ); 
$comments = $comments_query->comments;
 
// Comment Loop 
 
if ( $comments ) { 
    foreach ( $comments as $comment ) { 
        echo $comment->comment_content;
    }
} else {
    echo 'No comments found.';
}
?>

Using a loop like that - is that possible with a Bricks custom Loop?

1 Like

Hi Rob, Did you get this to work?

Hey Dale. Only with the custom loop, Bricks never came back to me on anything else :confused: