Skip to content

Instantly share code, notes, and snippets.

@adapicom
Created February 8, 2013 22:55
Show Gist options
  • Save adapicom/4742632 to your computer and use it in GitHub Desktop.
Save adapicom/4742632 to your computer and use it in GitHub Desktop.
WP IF ELSE by Post or Page Array
<?php if (is_single(array(459,16,21))) { ?>
<!-- put code here -->
<?php } else { ?>
<!-- put code here -->
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment