title: Making custom WooCommerce loop
body: <p>I'm using already designed theme for wordpress, and now instead of regular blog posts I would like to display WooCommerce products (which are custom post types I persume).</p>
  
  <p>This is the current query with display loop:</p>
  
  <pre><code>&lt;?php 
                  $args = array(
                      //'posts_per_page' =&gt; '2',
                      'paged' =&gt; get_query_var('paged')
                  );
                  $homepage_query = new WP_Query($args);
              ?&gt;
              &lt;?php //query_posts('posts_per_page=4&amp;paged='.get_query_var('paged')); ?&gt;
              &lt;?php if ( have_posts() ) : ?&gt;  
                  &lt;?php while ( $homepage_query-&gt;have_posts() ) : $homepage_query-&gt;the_post(); ?&gt;
                      &lt;?php if($style == 'blog_style') { ?&gt;
                      &lt;div id="blog-style" class="post-box"&gt;
                          &lt;?php get_template_part('content', 'blog'); ?&gt;
                      &lt;/div&gt;
                      &lt;?php } else { ?&gt;
                      &lt;div class="post-box grid_4 &lt;?php aero_post_box_class(); ?&gt;"&gt;
                          &lt;?php get_template_part('content', ''); ?&gt;
                      &lt;/div&gt;
                      &lt;?php } ?&gt;
                  &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>Is there a way to add options to <code>$args</code> so the loop displays WooCommerce products? I'm also using pagination with this loop, which is required on this project, so that's why it's important to use this loop.</p>