Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8086925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:36:06+00:00 2026-06-05T18:36:06+00:00

I am integrating a WordPress template. But my category list is repeating again. This

  • 0

I am integrating a WordPress template. But my category list is repeating again. This is the live site link:
The products and pagination are repeating twice.

Following is my code:

<?php /** start the product loop here */?>  
            <ul class="list-products default_product_display product_view_<?php echo wpsc_the_product_id(); ?> <?php echo wpsc_category_class(); ?> group">
            <?php while (wpsc_have_products()) :  wpsc_the_product(); ?>

                <?php $last_class = ( ! (($i+1) % $last_each) ) ? ' last' : '' ?>

                <?php if( wpsc_category_transition() ) :?>
                    <h3 class='wpsc_category_boundary'>
                    <?php echo wpsc_current_category_name(); ?>
                    </h3>
                <?php endif; ?>

                <li class="productsdisplay default_product_display product_view_<?php echo wpsc_the_product_id(); ?> <?php echo wpsc_category_class(); ?><?php echo $last_class ?>">
                    <?php if( wpsc_show_thumbnails() ) :?>
                        <div class="product-image">
                            <?php if(wpsc_the_product_thumbnail()) : ?>
                                <a rel="<?php echo wpsc_the_product_title(); ?>" class="<?php echo wpsc_the_product_image_link_classes(); ?>" href="<?php echo wpsc_the_product_permalink(); ?>">
                                    <img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/>
                                </a>
                            <?php else: ?>
                                <a href="<?php echo wpsc_the_product_permalink(); ?>">
                                    <img class="no-image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="No Image" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo WPSC_CORE_THEME_URL; ?>wpsc-images/noimage.png" width="<?php echo get_option('product_image_width'); ?>" height="<?php echo get_option('product_image_height'); ?>" /> 
                                </a>
                            <?php endif; ?>    

                            <?php if( wpsc_product_on_special() ) : ?>
                                <div class="sale-icon-small">Sale!</div>
                            <?php endif; ?> 
                        </div>                
                        <div class="thumb-shadow">&nbsp;</div>
                    <?php endif; ?>

                    <?php
                    if(gold_cart_display_gallery()) :                   
                        echo gold_shpcrt_display_gallery(wpsc_the_product_id(), true);
                    endif;
                    ?>  

                    <p class="title-product">
                        <?php if(get_option('hide_name_link') == 1) : ?>
                            <?php echo wpsc_the_product_title(); ?>          
                        <?php else: ?> 
                            <a class="wpsc_product_title" href="<?php echo wpsc_the_product_permalink(); ?>"><?php echo wpsc_the_product_title(); ?></a>
                        <?php endif; ?>
                    </p>            

                    <?php   
                        do_action('wpsc_product_before_description', wpsc_the_product_id(), ( ( isset( $wpsc_query->product ) ) ? $wpsc_query->product : null ) );
                        do_action('wpsc_product_addons', wpsc_the_product_id());
                    ?>

                    <?php if( !wpsc_show_stock_availability() OR wpsc_product_has_stock() ): ?>
                        <div class="price">
                        <?php 
                            $price = wpsc_the_product_price(get_option('wpsc_hide_decimals'));

                            if( get_option('wpsc_hide_decimals') )  
                                echo $price;
                            else
                                format_price( $price ); 
                        ?>
                        </div>
                    <?php else : ?>
                        <p><?php _e('Product not in stock', TEXTDOMAIN); ?></p>
                    <?php endif ?>

                    <?php echo do_shortcode('[button_icon href="'.wpsc_the_product_permalink().'" icon="arrow"]'.__( 'More details', TEXTDOMAIN ).'[/button_icon]') ?>    
                </li>   

                <?php if( !( ( $i + 1 ) % $last_each ) ) echo '<li style="display:block;height:0;with:100%;clear:both;visibility:hidden;margin:0;"></li>' ?>

            <?php $i++; endwhile; ?>
            </ul>
            <?php /** end the product loop here */?>

How can I remove this repetition?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:36:09+00:00Added an answer on June 5, 2026 at 6:36 pm

    The problem was with the theme template itself. I was using the kassyopea theme. In that Open the file wpsc-products_page.php, then look for and remove the last row:

    <?php $wp_the_query = new WP_Query(); wp_reset_query(); ?>
    

    Thats all. Every thing will now works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently integrating information from a third party API into a wordpress site. What
I am following the tutorial i found in this page http://javahunter.wordpress.com/2010/09/25/integrating-captcha-in-jsf-2-0/ to integrate a
I've been working on integrating deeplinking into a wordpress site im developing; http://dhp.camoconnell.com/ the
I am integrating blog(wordpress) into our magento site. I am at the point to
I use this tutorial for integrating MapKit to my application: http://iphonebcit.wordpress.com/iphone-map-kit-tutorial/ CLLocationCoordinate2D coordinate; coordinate.latitude
I'm in the process of integrating certain functionality into a WordPress site. I'm looking
I have been busy integrating Wordpress to one of a CakePHP application.Last Monday I
I am integrating a payment gateway; this is the first time I am integrating
I am integrating a Jquery slider inside of wordpress here is the demo of
I'm integrating coredata into my existing application as given in http://wiresareobsolete.com/wordpress/2009/12/adding-core-data-existing-iphone-projects/ . I'm facing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.