This is the code I'm using for listing categories:
<?php
$this_category = get_queried_object();
$args = array(
'orderby' => 'id',
'show_count' => '0',
'child_of' => $this_category->term_id,
'use_desc_for_title' => '0',
'taxonomy' => 'product_cat',
'hide_empty' => '0',
'child_of' => $this_category->term_id
);
wp_list_categories($args);
?>
If I enter to some category it's listing subcategories, then if I enter to subcategories i want to stay subcategories listed like when im in previous category.
Is there a chance to do this?
- category
-- subcategory
---- sub-subcategory
If I'm on "category" It's listing "subcategory", but when enter to "subcategory" I don't want to list "sub-subcategory" I want to list "subcategory" – Dime Feb 3 '13 at 0:03