Can category shows in two forms, archive form and itself form?
-
Can category shows in two forms, archive form and itself form?
I have some files: archive.php category.php category-6.php
<!– archive.php –>
<!– category.php –>
<?php
if (is_category(6)) {
// looking for category 9 posts
include(TEMPLATEPATH . ‘/category-6.php’);
} else {
// put this on every other category post
include(TEMPLATEPATH . ‘/single1.php’);
}
?><!– category-6.php –>
when I want to show category-6,it’s ok.And category-6.php contains many posts under this category and other things (Such as:the sub category,ADs,flash,and etc.).
when I just want to show posts list about these posts under category-6.I think that archive.php file can help , but now I don’t know how to do.
Can category-6 shows in two forms, archive form and itself form?
Anybody can help me?
- The topic ‘Can category shows in two forms, archive form and itself form?’ is closed to new replies.