I am attempting to exclude a single category from showing up anywhere, primarily in the Archive lists and the prev/next navigation on individual posts. I want it to be a hidden category, but not private.
Just about every post I've read on this subject refers to Template Tags/query_posts, but this just throws a fatal error no matter what template I add it to, or where in the template it goes, e.g. index.php (or sidebar.php or single.php):
<?php if (have_posts()) : ?>
<?php query_posts("cat=-4"); ?>
Switching the order of those 2 lines doesn't change the resulting:
"Fatal error: [] operator not supported for strings in path/to/wp-includes/query.php on line 1029"
This is using a very slightly modified (graphic design changes only) default WP template, and a widgetized sidebar. WP 2.6.3 and php 5.2.
Can anyone help?