From: Steve Sutton Date: Thu, 23 May 2019 20:24:22 +0000 (-0400) Subject: Update theme for new search feature X-Git-Tag: v1.0.5^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2a7ece05eb2d3f35c5b9ad0eaab66eec30831b8a;p=WP-Themes%2Fuptravel.git Update theme for new search feature Updating shortcode for member list results. Fix some notices or warnings. --- diff --git a/functions.php b/functions.php index 7656b85..28244e4 100644 --- a/functions.php +++ b/functions.php @@ -484,7 +484,7 @@ function display_memberfindme_directory() { $_REQUEST['textSearch'] = $_REQUEST['s']; $_REQUEST['action'] = 'list'; $_REQUEST['event_name'] = $_REQUEST['s']; - echo do_shortcode('[glm-members-list view="list" show="-search-filters-opened" text-search="'.stripslashes($_REQUEST['s']).'"]'); + echo do_shortcode('[glm-members-list view="list" show="-search-filters-opened" text-search="'.stripslashes($_REQUEST['s']).'" list-ajax-pagination="True" list-pagination-count="5"]'); if( isset($_REQUEST['event_name']) && !empty($_REQUEST['event_name'])){ echo do_shortcode('[glm-members-event-list limit="10"]'); echo 'View All Events'; @@ -513,4 +513,4 @@ add_theme_support( 'html5', array( 'comment-list', 'gallery', 'caption', -) ); \ No newline at end of file +) ); diff --git a/parts/search-dropdown.php b/parts/search-dropdown.php index 530717f..231bb3d 100644 --- a/parts/search-dropdown.php +++ b/parts/search-dropdown.php @@ -9,11 +9,14 @@
+$categories: ' . print_r( $categories, true ) . ''; +?>