• Resolved columboman

    (@columboman)


    Hi all.

    I’m trying to add the following pagination to my theme.

    My homepage is set to only display posts from one category:

    <?php query_posts('cat=-1'); ?>
    <?php if(have_posts()):?><?php while(have_posts()):the_post();?>
    <div class="post-row">
    	<?php
    	if ( function_exists( 'add_theme_support' ) && has_post_thumbnail()){
    	the_post_thumbnail(array(170, 80));
    	}
    	?>
    <div class="post-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></div>
    <div class="post-content excerpt">
    	<?php the_excerpt();?>

    The resulting pagination shows the same posts on each page rather than older posts. Any idea how I can fix this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding pagination to modified loop’ is closed to new replies.