PHP question: how to combine syntax?
This part is incorrect: if ( is_single() && ! ‘wpdmpro’ == get_post_type() ) That essentially means: if ( is_single() && false == get_post_type() ) { Which will never be true. To check if a value does not equal another value, use !==: if ( is_single() && ‘wpdmpro’ !== get_post_type() ) Also, the way you’ve combined … Read more