In my search to exclude categories in wordpress, there wasn’t a clear code snippet that was easy to adjust. I thought I would add this snippet to help others. Note, you’ll need to include php tags. I did not because they do not display on the site properly.
$category_id = get_cat_ID('carousel'); $category_id_2 = get_cat_ID('Applications'); $category_id_3 = get_cat_ID('Product Brochures'); $category_id_4 = get_cat_ID('Services Brochures'); query_posts('cat=−'.$category_id.',−'.$category_id_2.',−'.$category_id_3.',−'.$category_id_4); if(have_posts()): while(have_posts()): the_post(); endwhile; else : endif;