Wordpres Get_Posttype

if ( get_post_type( get_the_ID() ) == 'slug_post_type' ) {
    //if is true
}

Leave a Comment