removing events results if there is no text search
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 14 Feb 2018 14:08:03 +0000 (09:08 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 14 Feb 2018 14:08:03 +0000 (09:08 -0500)
if no text search , remove events results

inc/custom.php

index 7e3269e..0e6ff33 100644 (file)
@@ -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