This code creates a custom WooCommerce product query using WC_Product_Query enabling you to use any WP_Query parameters.
Demo Image
Works with WC Product Query parameters in WooCommerce.
![Sample Products Loop](https://wpsites.net/wp-content/uploads/2022/05/109706-sample-products-list.png)
Parameters
Installation
There’s only 1 step :
Copy & paste the PHP code ( excluding the opening PHP tag ) from the functions.php file to the end of your child themes functions file or custom functionality plugin.
You must be logged in to post a comment.