How to show only sub categories on the parent category page?
-
I need to display on the main page of the store only parent category of goods, and this I did, I comment output code sub-categories in the template.
Now the problem is that – when you switch to any category of goods, I need to show only its sub categories, parent no. And so with all levels of sub categories, how to realize it?
I understand this code<?php wpsc_start_category_query(array('category_group'=> 1, 'show_thumbnails'=> 1)); ?> <a href="<?php wpsc_print_category_url();?>" title="<?php wpsc_print_category_name();?>"> <?php wpsc_print_category_image(); ?> </a> wpsc_print_category_name();?> <?php wpsc_end_category_query(); ?>
show categories. How to find a sub category of the current category to which the user is located and bring them out.
What functions to use it, and how a paste it to this code?Sorry for my English, thanks.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘How to show only sub categories on the parent category page?’ is closed to new replies.