This code shows how to create a custom query and loop for WooCommerce archive pages. It accounts for displaying product category and tag archives as well as the main WooCommerce shop page. It will only execute the loop if on a WooCommerce archive page, else the default WooCommerce function will run. To customize, you should insert your code within the while loop. This code should go in your theme’s woocommerce.php file.
How to Create a Custom WooCommerce Archive Loop
This code shows how to create a custom query and loop for WooCommerce archive pages. It accounts for displaying product category and tag archives as well as the main WooCommerce shop page. It will only execute the loop if on a WooCommerce archive page, else the default WooCommerce function will run. To customize, you should […]
Thanks helpful