Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wp_query;
- /*
- * Most functions called in this page can be found in the wpsc_query.php file
- */
- ?>
- <?php $cat = $wp_query->tax_query->queries[0]['terms'][0]; ?>
- <div class="products-wrap">
- <div class="products-page">
- <?php $wpsc_query = new WP_Query('post_type=wpsc-product&posts_per_page=-1&wpsc_product_category='.$cat); ?>
- <?php print_r($wpsc_query->posts); ?>
- <?php $count = $wpsc_query->post_count; ?>
- <?php $post_numb = 1; ?>
- <?php while($wpsc_query->have_posts()): $wpsc_query->the_post(); ?>
- <?php the_title(); ?>
- <?php if(($post_numb%3 == 0)): ?>
- <?php echo 'test<br />'; ?>
- <?php elseif((($post_numb == $count) && ($post_numb%3 != 0))): ?>
- <?php echo 'test<br />'; ?>
- <?php else: ?>
- <?php ?>
- <?php endif; ?>
- <?php $post_numb++; ?>
- <?php endwhile; ?>
- </div></div>
Add Comment
Please, Sign In to add comment