projects
/
WP-Themes
/
wmta.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a5198
)
removing events results if there is no text search
author
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 14 Feb 2018 14:08:03 +0000
(09:08 -0500)
committer
Anthony 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
patch
|
blob
|
history
diff --git
a/inc/custom.php
b/inc/custom.php
index
7e3269e
..
0e6ff33
100644
(file)
--- 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