• Hi I’m trying to build a sitemap page for the product categories.
    However since there are so many categories, the list is rather long. So I want to separate them into 2 columns.

    i found a code from here that makes sense. However it’s skewed towards Posts.

    Basically it counts the total number of posts from the query adds some conditionals like
    if ($i == (round($query->post_count / 2))) echo '</ul></div><div class="tri2"><ul>';

    Is there any way to count the total number of categories with wpsc_start_category_query? or is there another way i can do this?

    https://wordpress.org/plugins/wp-e-commerce/

  • The topic ‘Counting total number of product categories’ is closed to new replies.