Title: Replacing Loop-WooCommerce
Last modified: August 21, 2016

---

# Replacing Loop-WooCommerce

 *  [JohnBuchanan](https://wordpress.org/support/users/johnbuchanan/)
 * (@johnbuchanan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replacing-loop-woocommerce/)
 * Theme- Just Write
 * I found the documentation for `<?php if ( have_posts() ) : <?php endif; ?>`
 * Replace with
    `<?php woocommerce_content(); ?>`
 * This theme does not include php if and end. The page.php code is as shown below-
 *     ```
       <?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(); ?>
       ```
   
 * Where can I find `<?php if ( have_posts() ) : <?php endif; ?>`. Will it be located
   in a template? I did not want to mess around to much as I am not proficient in
   php.
 * Sincerely,
    John Buchanan [Buchanancomputer.com](http://buchanancomputer.com)

The topic ‘Replacing Loop-WooCommerce’ 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/replacing-loop-woocommerce/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
