Return to Snippet

Revision: 37545
at December 11, 2010 13:30 by ivorpad


Initial Code
<?php
$post = $wp_query->post;
if ( in_category('3') ) {
include(TEMPLATEPATH . '/single-blog.php'); }
elseif ( in_category('15') ) {
include(TEMPLATEPATH . '/single-foto.php'); }
elseif ( in_category('18') ) {
include(TEMPLATEPATH . '/single-video.php'); }
else { include(TEMPLATEPATH . '/single-default.php');
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Include More than 2 Singles.php

Initial Tags

                                

Initial Language
PHP