About Category judgement on the template
-
Hello !
I am trying to get a DIFFERENT Category php template to show when I add this code, BUT for some reason, its not working for me,The “else” seems to work , meaning : when I run this code , ALL the other pages show my “Category.php”
BUT my PROBLEM is the cat “762” ALSO shows the single1.php ??
Can someone tell me what I am doing wrong PLEASE ?? ( with sugar and cherries )
I am trying to apply the following: ( This is placed in my Category.php )
<?php $post = $wp_query->post; if ( in_category('3') ) { include(TEMPLATEPATH . '/Category-3.php'); } else { include(TEMPLATEPATH . '/Category.php'); } ?>
ANY help all all would be great ??
Ths!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘About Category judgement on the template’ is closed to new replies.