I am attempting to limit the news posts on this page.
http://www.guerrilladigital.cc/blog/news/
for some reason, i can get it to only show the NEWS category posts, but it continues to show 'ghost' pages. I think previous_posts_link(); is still counting the non-NEWS posts, even though they're being omitted in The Loop.
I have ARTISTS defined as a constant in functions.php. Anything that isnt NEWS will fall under this category.
it's using the index.php.. and here's the loop i'm using:
<div id="posts">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<!--the next line tells the loop to NOT post the post if it is an artist post, thus showing only NEWS items-->
<?php if (in_category(ARTISTS)) continue; ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small>Posted on <?php the_time('l, F jS, Y') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></small>
<?php the_content('Read More'); ?>
<hr/>
<?php endwhile ?>
<div id="posts_navigation">
<?php previous_posts_link(); ?>
<?php next_posts_link(); ?>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>