Skip to content

Instantly share code, notes, and snippets.

@eliasfaical
Created May 23, 2013 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliasfaical/5636675 to your computer and use it in GitHub Desktop.
Save eliasfaical/5636675 to your computer and use it in GitHub Desktop.
Other pages single
<?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