Created the is_post_type function! For custom type conditionals
authorLaury GvR <laury@gaslightmedia.com>
Thu, 17 Sep 2015 20:27:22 +0000 (16:27 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 18 Sep 2015 19:17:23 +0000 (15:17 -0400)
functions.php

index 5423734..f3000c0 100644 (file)
@@ -299,6 +299,11 @@ function glm_site_scripts()
 
 }
 
+function is_post_type($type){
+    global $wp_query;
+    if($type == get_post_type($wp_query->post->ID)) return true;
+    return false;
+}
 
 /* Header for posts*/
 function glm_get_background() {