Can’t get the posts_nav_link to appear with query_posts
-
I am using query_posts to limit the number of posts on a page. However, the posts_nav_link doesn’t appear to allow the user to turn the page to look at previous entries. This is the following code, am I doing this correctly?
<?php query_posts(‘cat=3&showposts=4’); ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2><?php the_title(); ?></h2>
<div class=”postdate”><?php the_time(‘F jS, Y’) ?> </div>
<div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div> <!– entry –>
<?php endwhile; ?><?php posts_nav_link(‘separator’,’prelabel’,’nextlabel’); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can’t get the posts_nav_link to appear with query_posts’ is closed to new replies.