Example products loop in WooCommerce
<ul class="products">
<?php
$args = array(
'post_type' => 'product',
'posts_per_page' => 12
);
$loop = new WP_Query( $args );
if ( $loop->have_posts() ) {
while ( $loop->have_posts() ) : $loop->the_post();
wc_get_template_part( 'content', 'product' );
endwhile;
} else {
echo __( 'No products found' );
}
wp_reset_postdata();
?>
</ul><!–/.products–>

Loading...
Tags: woocommerce
Oopps, sorry. This discussion is closed.
If you are a
paying customer and you are looking for Tech Support please post a ticket on our
Support Tickets page and we will respond promptly.
If you are
not a paying customer and you would like to post a pre-sale question or a quote request please use our
Contact form.
Why did we close the discussion?
Many of the customers started reporting issues as comments instead of the ticketing system and this started delaying our response time.
We are making this change to serve our customers better. We have ramped up our support team and we are trying to get the reply out on the same day.
Thanks for understanding.