How to create a dynamic WooCommerce reviews slider with Bricks Query Loop?

Goal: I want to display WooCommerce product reviews dynamically in a slider using Bricks Builder’s Query Loop.

What I’ve Tried:

  • Enabled Query Loop on the container block wrapping the slider.
  • Added custom PHP code to fetch reviews via get_comments().
  • Used {post_title} and {post_content} dynamic tags, but they display blog post data instead of reviews.

Problem:
The Query Loop isn’t pulling WooCommerce reviews dynamically. Is there a way to intercept the query and link it to WooCommerce comments?

Setup:

  • Bricks Builder version: latest
  • WooCommerce version: latest

Thank you for your help!

Isn’t there any solution yet? I am facing the same issue.

No, bricks doesn’t have built-in comments query

There’s no default functionality for this (yet).
The Bricks Builder team is working on WooCommerce improvements but im not sure if that includes this.

There’s a paid tutorial for this on Brickslabs if you’re interested (im not affiliated with it, and i can’t speak for it’s quality as i’ve never used it):

Claude also came up with some code, but i dont have a test environment to test that right now.
If you want I could share it’s snippets with you. Let me know!

1 Like