wp check if post id code example Example: if post id is wordpress php if( is_single( 2578 ) ) { /* ... */ } else { /* ... */ }