Help?
[please do not bump – it is against the forum rules, and you actually lessen your chances to get a reply, because many helpers check the threads without replies first.]
I currently have it set up as:
<?php query_posts(‘cat=6&posts_per_page=3’); ?>
Do I need to add:
<?php query_posts(‘cat=6&posts_per_page=3&paged=6’); ?>
Thanks.
have you read this part of the docu?
Show Posts from Current Page
Display posts from current page:
query_posts( 'paged=' . get_query_var( 'page' ) );
try:
<?php query_posts('cat=6&posts_per_page=3&paged=' . get_query_var( 'page' ) ); ?>
Hmm, not working. When I click the older posts link it just displays the same 3 posts. Here’s my code, maybe something is wrong.
<?php $temp_query = $wp_query; ?>
<?php query_posts('cat=17&posts_per_page=3&paged=' . get_query_var( 'page' ) ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="meta"><?php the_time('n.j.Y') ?> // By <?php the_author() ?> // <?php the_category(',') ?></div>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?>
<?php wp_footer(); ?>