From bdfc1c2a97c6c266dcbb3006ec1500360c6dc8c0 Mon Sep 17 00:00:00 2001 From: Naveen Giri <1naveengiri@gmail.com> Date: Tue, 16 Apr 2024 09:18:23 +0530 Subject: [PATCH] Fix #2569 no category filter setting issue --- includes/widgets/class-geodir-widget-categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;