transmitstudio
6/26/2012 - 3:39 PM

Add function to enable conditional for eg. if (is_post_type('custom-post-type'))

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;
}