Hello..
i have problem with displaying subcategories/ child categories.
i use this code :
on my sidebar :
<?php
if (is_category()) {
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "") {
wp_list_categories('orderby=id&show_count=0&title_li=
&use_desc_for_title=1&child_of='.$this_category->cat_ID);
}
}
?>
that code work fine if there's categories have subcategories.
but the problem is
when i click those child categories.and goes to the category page. then the child categories menu is missing. i want it stays there.
basicly when i click the subcategories menu. that those link will stay not disappear.
anyone can help me please
Thank you