From 5f393d3cc02729ac3c3c1db1e0d0b9023eeb0fcc Mon Sep 17 00:00:00 2001 From: Imran Nathani Date: Mon, 10 Aug 2015 13:13:49 -0400 Subject: [PATCH 1/2] Pass zone id to search filter Pass zone id to search filter. This will help better the search for certain zones --- zoninator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoninator.php b/zoninator.php index e6fc7b0..d0c2725 100644 --- a/zoninator.php +++ b/zoninator.php @@ -813,7 +813,7 @@ function ajax_search_posts() { 'order' => 'DESC', 'orderby' => 'post_date', 'suppress_filters' => true, - ) ); + ), $this->_get_request_var( 'zone_id' ) ); if ( $this->_validate_category_filter( $filter_cat ) ) { $args['cat'] = $filter_cat; From f0b934bbf8fc86770898061344cc283beda424b3 Mon Sep 17 00:00:00 2001 From: Imran Nathani Date: Mon, 10 Aug 2015 13:16:42 -0400 Subject: [PATCH 2/2] Pass zone id to recent posts filter Pass zone id to recent posts filter to better filter the results. --- zoninator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoninator.php b/zoninator.php index d0c2725..d155f70 100644 --- a/zoninator.php +++ b/zoninator.php @@ -584,7 +584,7 @@ function ajax_recent_posts() { 'ignore_sticky_posts' => true, 'post_status' => array( 'publish', 'future' ), 'post__not_in' => $zone_post_ids, - ) ); + ), $this->_get_request_var( 'zone_id' ) ); if ( $this->_validate_category_filter( $cat ) ) { $args['cat'] = $cat;