From: Anthony Talarico Date: Wed, 14 Feb 2018 14:08:03 +0000 (-0500) Subject: removing events results if there is no text search X-Git-Tag: v1.0.0^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1275de56b79b9ae14fd89bc32bd242de29448e77;p=WP-Themes%2Fwmta.git removing events results if there is no text search if no text search , remove events results --- diff --git a/inc/custom.php b/inc/custom.php index 7e3269e..0e6ff33 100644 --- a/inc/custom.php +++ b/inc/custom.php @@ -130,7 +130,7 @@ function display_memberfindme_directory() { $_REQUEST['action'] = 'list'; $_REQUEST['event_name'] = $_REQUEST['s']; echo do_shortcode('[glm-members-list view="grid" ]'); - if( isset($_REQUEST['textSearch']) ){ + if( isset($_REQUEST['textSearch']) && !empty($_REQUEST['textSearch'])){ echo do_shortcode('[glm-members-event-list]'); } // $my_postid = 30722;//This is page id or post id