projects
/
WP-Themes
/
PrestonFeather.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d174be3
)
More selective in forcing searches to post types
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 18 Dec 2014 17:07:46 +0000
(12:07 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 18 Dec 2014 17:07:59 +0000
(12:07 -0500)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
007b855
..
93d45a7
100755
(executable)
--- 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;