projects
/
web
/
GruntInit
/
glmTheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d126b44
)
updating functions file at Laury's request
author
Ian Weller
<ian@gaslightmedia.com>
Thu, 7 Apr 2016 19:35:57 +0000
(15:35 -0400)
committer
Ian Weller
<ian@gaslightmedia.com>
Thu, 7 Apr 2016 19:35:57 +0000
(15:35 -0400)
root/functions.php
patch
|
blob
|
history
diff --git
a/root/functions.php
b/root/functions.php
index
d3c7fd5
..
e56c988
100644
(file)
--- a/
root/functions.php
+++ b/
root/functions.php
@@
-132,6
+132,12
@@
function mytheme_search_loop() {
<?php endwhile;
}
+function is_post_type($type){
+ global $wp_query;
+ if($type == get_post_type($wp_query->post->ID)) return true;
+ return false;
+}
+
add_action('thematic_searchloop', 'mytheme_search_loop');
// End of the Contextual/Highlight Search functions
?>