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