Show subcategories menu on category page
http://www.onzos.com/
I got this problem whenever I click on a sub category link under the category menu, the sub category menu disappear.
For example if I go to this page
http://www.onzos.com/category/udemy/ and click on the "Crafts and Hobbies" link, the sub category menu disappear I want it the sub category menu to stay whenever I navigate around the links under the category "Udemy".
Thank You
Below is the code on action.php on Clipper Theme
// add the subcategories box on category pages
function clpr_sidebar_subcategories_box() {
if ( ! is_tax( APP_TAX_CAT ) )
return;
$coupon_category_array = get_term_by( 'slug', get_query_var( APP_TAX_CAT ), APP_TAX_CAT, ARRAY_A, '' );
// show all subcategories if any
$subcats = wp_list_categories( 'hide_empty=0&orderby=name&show_count=1&title_li=& use_desc_for_title=1&echo=0&show_option_none=0&tax onomy='.APP_TAX_CAT.'&depth=1&child_of=' . $coupon_category_array['term_id'] );
if ( empty( $subcats ) )
return;
?>
<div id="coupon-subcats" class="sidebox">
<div class="cut"></div>
<div class="sidebox-content">
<div class="sidebox-heading">
<h2><?php _e( 'Sub Categories', APP_TD ); ?></h2>
</div>
<div class="coupon-cats-widget">
<ul class="list">
<?php echo $subcats; ?>
</ul>
</div>
</div><!-- /sidebox-content -->
<br clear="all" />
<div class="sb-bottom"></div>
</div><!-- /sidebox -->
<?php
}