If you are using Bricks with WooCommerce, it’s also possible to use Bricks’ “Products” element, by setting the "facetwp" => true query argument with Bricks’ own “bricks/posts/query_vars” filter.
Bricks - find your Products element's ID
Find the Products element’s ID.
This filter can also be used to customize other query arguments. It works for Posts, Products, and Query Loop elements.
Add the following code to your Bricks child theme’s functions.php, and change the value of $element_id to your “Products” element’s unique ID.
This element ID consists of a string of random characters that can be found in the field above the element’s settings, where it is preceded with #brxe-.
== Changelog ==
0.5 (Sept 7, 2023)
- NewWooCommerce products support
- ImprovedMuch better query detection
- ImprovedBricks pager support