diff --git a/includes/widgets/class-geodir-widget-categories.php b/includes/widgets/class-geodir-widget-categories.php index ed84193a..5d698e63 100644 --- a/includes/widgets/class-geodir-widget-categories.php +++ b/includes/widgets/class-geodir-widget-categories.php @@ -972,7 +972,7 @@ public static function categories_output( $params ) { } } - $parent_category = ( $is_category && $cat_filter && $cpt == $current_posttype ) ? $current_term_id : 0; + $parent_category = ( $is_category && !$cat_filter && $cpt == $current_posttype ) ? $current_term_id : 0; $cat_taxonomy = $cpt . 'category'; $skip_childs = false;