WordPress.org

Support

Support » How-To and Troubleshooting » Next_posts_link not working

Next_posts_link not working

  • Why is the next and previous link not working on this loop.

    <?php echo "<p>". $query_string. "</p>" ?>
            <?php echo "<p>" . $paged . "</p>"; ?>
    
            <?php query_posts("posts_per_page=2"); ?>
            <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
            <!-- the loop -->
            <?php the_title(); echo "<br>"; ?>
            <?php endwhile; endif; ?>
    
           <?php previous_posts_link() ?>
    	<?php next_posts_link() ?>

    [closed as duplicate – please continue with the original topic http://wordpress.org/support/topic/pagenation-for-custom-loop?replies=1 ]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Next_posts_link not working’ is closed to new replies.
Skip to toolbar