WordPress.org

Ready to get started?Download WordPress

Forums

WP E-Commerce display only subcategories. (2 posts)

  1. mpa4hu
    Member
    Posted 1 year ago #

    Hello everyone and coders )

    I use WP E-Commerce plugin for my shop.
    I want to display subcategories. I have 5 categories and many subcategories. so the idea is to display all the categories exept this 5 ones. and in my css I want show/hide some of this subcategories by parent categories, so I still want somehow identify this subcategories (that's why I use subcategories)

    `<?php wpsc_start_category_query(array('category_group'=> get_option('wpsc_default_category'), 'show_thumbnails'=> 1)); ?>
    <a href="<?php wpsc_print_category_url();?>" class="wpsc_category_grid_item <?php wpsc_print_category_classes_section(); ?>" title="<?php wpsc_print_category_name(); ?>">
    <?php wpsc_print_category_image(); ?>
    </a>
    <?php wpsc_print_subcategory("", ""); ?>
    <?php wpsc_end_category_query(); ?>
    <!--close wpsc_categories-->`

    Here is my code any help?

  2. mpa4hu
    Member
    Posted 1 year ago #

    how to show index parent category?

Topic Closed

This topic has been closed to new replies.

About this Topic