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