Unique Template for each Custom Post Type Category
-
Hello! Need you help..
i am using this code in order to load different template depending on whic h categories..
<?php
$post = $wp_query->post;
if (in_category(‘logo’)) {
include(TEMPLATEPATH . ‘/single-webtemplate.php’);
} else {
include(TEMPLATEPATH . ‘/single-default.php’);
}?>
my question is, how about if i am using Custom Post Type category?
i need a code something like this
<?php
$post = $wp_query->post;
if (post_type(‘logo’)) {
include(TEMPLATEPATH . ‘/single-webtemplate.php’);
} else {
include(TEMPLATEPATH . ‘/single-default.php’);
}?>
Thanks in advance..please help me.. =)
The topic ‘Unique Template for each Custom Post Type Category’ is closed to new replies.