I’ve changed the code to this rather to exclude the categories that I don’t want. This way the categories do in fact get removed and i see the stiky post, however WP seems to think I’m always on the homepage. For instance, if I go to a category archive, I still get the same posts as I see on the home.
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = 7;
$exculde = array_merge(cat_and_kids(20), cat_and_kids(21), cat_and_kids(366));
$args=array(
'category__not_in'=>$exculde,
'paged'=>$paged,
'showposts'=>$post_per_page
);
cat_and_kids()
is a function I created that puts a category ID and all those of it’s children in an array.