Hi,
I'm using the "wp e-commerce" plugin, version 3.8.3
I want to show the latest products from a category.
Found this code:
<?php
$wpsc_query = new WPSC_query("category_id=4");
while (wpsc_have_products()) : wpsc_the_product();
echo '<div class="cr_cont"> <a href="'.wpsc_the_product_permalink().'"><img src="'.wpsc_the_product_image('57','57').'" alt="" /></a>
<span class="rc_in">
<h4><a href="'.wpsc_the_product_permalink().'">'.wpsc_the_product_title().'</a></h4>
</span> </div>';
endwhile;
?>
Paste it in home.php. The category id is correct. The weird thing is that it outputs regular posts, not products, and not from category "4".
Any ideeas?
Thanks in advance!