query_posts not excluding category
-
Version: WordPress 2.7.1
Theme: Thematic Framework
Installed plugins: All in one SEO Pack, Contact Form 7, Event Calendar, Event Calendar Widget, Executable PHP Widget, Global Translator, NextGEN Gallery, Reveal IDs for WP Admin, Role Manager, Spam Karma 2, To Do List, WP Super Edit, WP Thickbox Integration.This code isn’t working. I have WP setup as a CMS and I’m using page templates for certain pages. This template *should* display all the blog posts BUT category 3 (which is displayed on a separate page with it’s own template). Using the Advanced Category Excluder plugin is out because it isn’t as flexible as it would need to be to accommodate for the way I’ve set things up.
<?php /* Count the number of posts so we can insert a widgetized area */ $count = 1 ?> <?php query_posts = ('cat=-10'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"> <?php thematic_postheader(); ?> <div class="entry-content"> <?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'thematic').''); ?> <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?> </div> <?php thematic_postfooter(); ?> </div><!-- .post -->
Thoughts?
- The topic ‘query_posts not excluding category’ is closed to new replies.