Created
July 4, 2014 02:50
-
-
Save bmoredrew/dd74469de3b8e4347f8e to your computer and use it in GitHub Desktop.
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
<? if ( 'my_posttype' == get_post_type() ) | |
{ | |
global $post; | |
if ( $post->post_parent ) | |
{ | |
include dirname( __FILE__ ) . '/single-my_posttype-child.php'; | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment