wordpress check which post type is current code example
Example: wordpres get_posttype
if ( get_post_type( get_the_ID() ) == 'slug_post_type' ) {
//if is true
}
if ( get_post_type( get_the_ID() ) == 'slug_post_type' ) {
//if is true
}