Kiln Shed BuildJuly 22, 2022

if ( is_singular( 'your_custom_post_type' ) && get_the_ID() === 123 ) { // True only if it's a single 'your_custom_post_type' with ID 123 }