From 879922ac2b768aa589a97a7cd4fa69c559f52547 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 18 Dec 2014 12:07:46 -0500 Subject: [PATCH] More selective in forcing searches to post types --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 007b855..93d45a7 100755 --- a/functions.php +++ b/functions.php @@ -34,7 +34,8 @@ function glm_page_menu($parent = 0, $class = '') function SearchFilter($query) { - if ($query->is_search) { + $searchType = $_GET["searchType"]; + if ($searchType == 'blog') { $query->set('post_type', 'post'); } return $query; -- 2.17.1