I am trying to exclude categories from my blog page. I have the code all set up and according to the codex, this should work
$string = '-' . implode( ',-', explode( ' ', $data['exclude_categories'] ) );
The above line will print this to the screen upon testing
-homepage,-recent-news
Those are the two test categories that I am trying to remove from the blog page. Then I start my query like so
<?php query_posts($query_string . '&cat=' . $string);?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
my other code stuff here
when I test the blog page, all the posts show up. I can't figure out what is wrong.