Limit the number of results from wpsc_start_category_query
The wpsc_start_category_query() function basically calls the native WP get_terms() functions that is used to make a wp query: $category_list = get_terms(‘wpsc_product_category’,’hide_empty=0&parent=”.$category_id); Since WPEC uses custom post types you can just build your own queries easily, here using http://codex.wordpress.org/Function_Reference/get_terms But get_terms() doesn”t do random, so you have to get them all and then shuffle the array … Read more