ive tried that and i cant override my default settings. the first page displays correctly, but when you click next page it shows the remaining posts and not the post limit i set. and in the title of the browser it says “pages not found”. i have googled and googled and searched www.ads-software.com and read many others solutions. which none of them fix my issue. could you please tell me what i might be leaving out. here is my code –
<strong><?php get_header(); ?>
<?php get_sidebar(); ?>
<?php query_posts('cat=3&showposts=2&paged=' . $paged); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="recent-news">
<div class="post-thumbnail">
<?php the_post_thumbnail(); ?>
</div><!--end post-thumbnail-->
<div class="latest-news">
<div class="post-title"><h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2></div>
<p><?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,40); ?>... <a href="<?php the_permalink(); ?>">Read More</a></p>
<div class="datetime"><?php the_author(); ?> - <?php the_time('l, F j, Y G:i'); ?> <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></div>
</div><!--end latest-news-->
</div><!--end recent-->
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else:
?>
<h2>Woops...</h2>
<p>Sorry, no posts we're found.</p>
<?php endif; ?>
<div class="clearfloat"></div>
<div id="post-nav"><p align="center"><?php posts_nav_link(); ?></p></div><!--end post-nav-->
</div><!--end wrapper-->
<?php get_footer(); ?></strong>
Thanks in advance for any help!