WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
how to get all categories (2 posts)

  1. usman malik
    Member
    Posted 1 year ago #

    I am making a custom theme for woocommerce and wanted to list down all the product categories. What function do i use to get the categories ?

    Thanks for the help

    http://wordpress.org/extend/plugins/woocommerce/

  2. ManusH
    Member
    Posted 1 year ago #

    If you want to make a custom theme, you may want to investigate on the Free-themes of Woo; like Wootique, Artificier & Mystile.

    For example, all those themes have a page-template named sitemap:
    http://demo2.woothemes.com/mystile/templates/sitemap/
    http://demo2.woothemes.com/artificer/templates/sitemap/
    http://demo2.woothemes.com/wootique/templates/sitemap/

    You can grab those layout and functionality and customize as you wish.

    It has to be something like:

    <div>
    <h3><?php _e( 'Product Categories', 'woothemes' ) ?></h3>
    <ul>
    <?php wp_list_categories( 'taxonomy=product_cat&pad_counts=1&title_li=' ); ?>
    </ul>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic