From ffc3fd43274fa1659b4f10c07697fed7d34f00fc Mon Sep 17 00:00:00 2001 From: Kiran Prajapati Date: Tue, 13 Jul 2021 10:53:00 +0530 Subject: [PATCH] Map markers for custom loop filtering current location on single listing page - FIXED --- change_log.txt | 1 + includes/widgets/class-geodir-widget-map.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index b1bf869cd..d24fa427f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ = 2.1.0.18 = * GD listings author page not working when author permalink contains custom link - FIXED * Compatibility changes for Jetpack v8.1+ - CHANGED +* Map markers for custom loop filtering current location on single listing page - FIXED = 2.1.0.17 = * Complianz | GDPR/CCPA Cookie Consent plugin integration added for GD maps - ADDED diff --git a/includes/widgets/class-geodir-widget-map.php b/includes/widgets/class-geodir-widget-map.php index 3aaa9e695..368ef1c6f 100644 --- a/includes/widgets/class-geodir-widget-map.php +++ b/includes/widgets/class-geodir-widget-map.php @@ -583,7 +583,7 @@ public function output( $args = array(), $widget_args = array(), $content = '' ) } // post map - if ( $map_args['map_type'] == 'post' ) { + if ( $map_args['map_type'] == 'post' || ( ! empty( $map_args['tags'] ) && is_scalar( $map_args['tags'] ) && ( strpos( $map_args['tags'], '.' ) === 0 || strpos( $map_args['tags'], '#' ) === 0 ) ) ) { $map_args['country'] = ''; $map_args['region'] = ''; $map_args['city'] = '';