exclude category in loop.php October 21, 2022 by Tarik Billa You’ve misplaced the apostrophe. query_posts('cat=-1'); while ( have_posts() ) : the_post(); ?>