Created
June 5, 2011 13:27
-
-
Save timwco/1008959 to your computer and use it in GitHub Desktop.
Wordpress Apply to All Sub Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_page('about-us') || '3' == $post->post_parent ) { | |
// Do Something SPECIFIC Here | |
} else { | |
// Handle Everything Else Here | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment