Title: Woocommerce Loop Replacement
Last modified: August 21, 2016

---

# Woocommerce Loop Replacement

 *  [JohnBuchanan](https://wordpress.org/support/users/johnbuchanan/)
 * (@johnbuchanan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-loop-replacement/)
 * Theme- Justwrite
 * I have tried the documented way of replacing `<?php if ( have_posts() ) :<?php
   endif; ?>`
    Replace with `<?php woocommerce_content(); ?>`
 * This theme does not embody this code in page.php.
 *     ```
       <?php
       /* ------------------------------------------------------------------------- *
        *	Normal page template
       /* ------------------------------------------------------------------------- */
   
       get_header(); ?>
   
       <section class="container<?php ac_mini_disabled() ?> clearfix">
   
       	<?php get_template_part( 'page-templates/template', 'page' ); ?>
   
       </section><!-- END .container -->
   
       <?php get_footer(); ?>
       ```
   
 * 1. Where will I find the correct `<?php if ( have_posts() ) :<?php endif; ?>`
   
   2. Will it be located inside of a template? I did not want to mess around to 
   much after the supplied work around did not function properly. When applied no
   product images show up but the sidebar does push up into proper location on page.

The topic ‘Woocommerce Loop Replacement’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [JohnBuchanan](https://wordpress.org/support/users/johnbuchanan/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-loop-replacement/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
