Ok, I figured out how to remove two categories from my index page by placing this in index.php:
<?php
if (is_home()) {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-4,-5&paged=$paged");
}
?>
That keeps categories 4 & 5 from showing. My next question is how can I do the same thing on my archive page.
I've got a custom archive.php and I tried calling it like:
<?php
if (is_archive()) {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-4,-5&paged=$paged");
}
?>
This excluded the 4 & 5 categories, but it shows all the post no matter what month or archives I went to. Anybody, know what I can do to make this happen?