Skip to content

Instantly share code, notes, and snippets.

@MrJSdev
Created March 27, 2018 05:11
Show Gist options
  • Save MrJSdev/8b5b5b5f5cd9093fd2b901e34a4ae0e1 to your computer and use it in GitHub Desktop.
Save MrJSdev/8b5b5b5f5cd9093fd2b901e34a4ae0e1 to your computer and use it in GitHub Desktop.
This is the simple code for the guide: http://extracatchy.net/if-post-id/
<?php
// Do not copy the above php tag.
if( is_page( 1780 ) ) {
/* Do something... */
} else {
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment