Title: Theme Integration
Last modified: August 22, 2016

---

# Theme Integration

 *  Resolved [Dani-Girl](https://wordpress.org/support/users/dani-girl/)
 * (@dani-girl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/theme-integration-12/)
 * Per the instructions:
 *     ```
       "2. Edit product-adder.php
       When you complete step 1, just open newly created file (product-adder.php) and find the loop (see The_Loop). The loop usually starts with a:
   
       <?php if ( have_posts() ) : ?> or <?php while ( have_posts() ) : the_post(); ?>
   
       And ends with:
   
       <?php endif; ?> or <?php endwhile; ?>
   
       This varies between themes. Once you have found it, delete it. In its place put:
   
       <?php content_product_adder(); ?>"
       ```
   
 * I get an error in my “loop” when I try to add in the code. what do I do?
 * This is my loop:
 *     ```
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                 <?php the_content(); ?>
                 <hr />
                 <?php endwhile; else: ?>
                 <p>
                   <?php _e('Sorry, no posts matched your criteria.'); ?>
                 </p>
                 <?php endif; ?>
       ```
   
 * which do I delete? If i replace the <?php endwhile; else: ?> I have an error
 * IF i replace the <?php endif; ?> I get an error.
 * [https://wordpress.org/plugins/ecommerce-product-catalog/](https://wordpress.org/plugins/ecommerce-product-catalog/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/theme-integration-12/#post-5188783)
 * You should replace the whole loop with <?php content_product_adder(); ?>

Viewing 1 replies (of 1 total)

The topic ‘Theme Integration’ is closed to new replies.

 * ![](https://ps.w.org/ecommerce-product-catalog/assets/icon-128x128.png?rev=1103243)
 * [eCommerce Product Catalog Plugin for WordPress](https://wordpress.org/plugins/ecommerce-product-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecommerce-product-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecommerce-product-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecommerce-product-catalog/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ndre](https://wordpress.org/support/users/ndre/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/theme-integration-12/#post-5188783)
 * Status: resolved