Created
May 23, 2013 14:56
-
-
Save eliasfaical/5636675 to your computer and use it in GitHub Desktop.
Other pages single
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 | |
$postTypeCurrent = get_post_type(); | |
switch ($postTypeCurrent) { | |
case 'noticias': | |
include_once TEMPLATEPATH . '/app/single-noticias.php'; | |
break; | |
case 'agenda': | |
include_once TEMPLATEPATH . '/app/single-agenda.php'; | |
break; | |
case 'revista': | |
include_once TEMPLATEPATH . '/app/single-revista.php'; | |
break; | |
case 'galeria': | |
include_once TEMPLATEPATH . '/app/single-galeria.php'; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment