Located in: Located in: category.functions.php
Version Introduced: 3.8
Accepted Parameters: $category_id – can be left out if used within the category loop.

Description: This template tag will return the src for the category image – if not image is found ti will return false because of this you can also use this tag as a conditional to check if the category has an image.

Note: This function only returns the value if you want to print it to your template use an echo function.

[php] <?php if(wpsc_show_category_thumbnails()) : ?>
<img src="<?php echo wpsc_category_image(); ?>" alt="<?php echo wpsc_category_name(); ?>" />
<?php endif; ?>[/php]