Multiple Category Templates
-
Hello,
I’ve been researching all day and I cannot find anything that answers what I need.
I have several categories on my site that I need to have different templates. I need to somehow tell it what categories to use for different templates.
Here is an example of what I have tried to do. Here is my category.php page:
<?php if ( is_category('directory') ) { include(TEMPLATEPATH . '/directory.php'); } elseif ( is_category('2') ) { include(TEMPLATEPATH . '/archive.php'); } else { include(TEMPLATEPATH . '/archive.php'); } ?>The directory.php file is basically just the archive.php for now until I can figure out the issue. The screen keeps coming up blank.
Any ideas?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Multiple Category Templates’ is closed to new replies.