please help! category doesn’t work
-
Whenever I click on the categories they go to index.php, not archive.php or category.php. I basically can’t see my category archives.
I tried to force the main page to refer to archive.php as a template when it went to the category archive, by putting this code in functions.php:
<?php if ( is_category(‘8’) ) {
include(TEMPLATEPATH . ‘/archive.php’);
}
?>
But instead of recognizing is_category(‘8’) as the category archive, the blog thinks I want all posts under category 8 to have archive.php as a template. Was functions.php the right place to put it? Is this even the right code to use?
I would appreciate ANY help. This problem has consumed way too many hours of my life to admit…
The topic ‘please help! category doesn’t work’ is closed to new replies.