-
-
Save kanlukasz/4cf9bf5a357f15cb66a8c0eb5c58137c to your computer and use it in GitHub Desktop.
Revisions
-
woogists revised this gist
May 11, 2018 . No changes.There are no files selected for viewing
-
woogists revised this gist
Mar 12, 2018 . No changes.There are no files selected for viewing
-
woogists created this gist
Mar 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <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-->