Add function to enable conditional for eg. if (is_post_type('custom-post-type'))
function is_post_type($type){ global $wp_query; if($type == get_post_type($wp_query->post->ID)) return true; return false; }