Located in: Located in: category.functions.php

Version Introduced: 3.8

Parameters Accepted: $start_element $end_element

Description: This template tag will print the subcategories for the product category. If you want to display them in a list then set the start element to be [php]<li>[/php]

end element will be [php] </li>[/php]

Note – you will need to open and close your list before you output the subcategories (see below)

It must be used after the category query has been stared:

[php] <?php wpsc_start_category_query(array(‘category_group’=> 1, ‘show_thumbnails’=> 1)); ?> [/php]

Code Example:



<?php wpsc_print_subcategory( ‘<li>’, ‘</li>’ ); ?>