Basically I have this loop that shows all post. Inside of it I want to exclude post's from categories including shirts and hoodies, also the gallery category. Here is what I have so far.
the code works without the 'cat=-gallery". But with it, it does not show any post's at all.
<?php $limit = 5; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( 'cat=-gallery&showposts=' . $limit . '&paged=' . $paged ); $wp_query->is_category = true; $wp_query->is_home = false; ?> <-----my blog stuff----> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <?php next_posts_link('Older Entries »', 0); ?>