Filtering categories within a loop/query_posts
-
<?php query_posts('category_name=people&posts_per_page=50'); ?> <?php $acs->query_posts(array('group_name' => 'People')); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <li><a class="popup" href="<?php the_permalink(); ?>"><img src="<?php echo get_post_meta($post->ID, 'homepage_thumbnail', true); ?>" /></a></li> <?php endwhile; ?>
Is there a way for me to call the category ‘people’ but have it exclude all posts that are in another category as well?
Post 1 – People
Post 2 – People
Post 3 – People, Other
Post 4 – People
….I am looking to query all people, but ignore posts that are in the ‘other’ category.
Thanks for any help in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filtering categories within a loop/query_posts’ is closed to new replies.