Woo Show all products
<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-->
9 Related pages
- Woo add rating to all products
- Woo get category name by id
- Woo Show all products
- WooCommerce change item title position
- Woocommerce import sample data in woocommerce (with Product Images)
- WooCommerce number of products displayed per page
- WooCommerce product loop
- WooCommerce replace h2 from product-title
- WooCommerce shop page loop