updating functions file at Laury's request
authorIan Weller <ian@gaslightmedia.com>
Thu, 7 Apr 2016 19:35:57 +0000 (15:35 -0400)
committerIan Weller <ian@gaslightmedia.com>
Thu, 7 Apr 2016 19:35:57 +0000 (15:35 -0400)
root/functions.php

index d3c7fd5..e56c988 100644 (file)
@@ -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
 ?>