Next_and_Previous_Links lead to blank page.
-
Hi guys, I’m trying to put on the bottom of my page “older blog posts” to navigate users to older posts. I’m using:
<?php echo get_next_posts_link('Go to next page'); ?>
And the link appears, but it goes to a blank page. How do I fix this?
Here’s my index.php
<div class="post-container"> <?php query_posts('posts_per_page=3&offset=3'); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id="blog-posts" <?php post_class() ?>> <?php the_post_thumbnail( array(180,180) ); ?> <h2> <a href="<?php the_permalink() ?>"> <?php the_title(); ?> </a> </h2> <?php the_excerpt(); ?> <span class="entry-date"><?php echo get_the_date(); ?></span> </div> <?php endwhile; ?> <?php echo get_next_posts_link('Go to next page'); ?> <?php endif; wp_reset_postdata(); ?> </div> <?php get_sidebar(); ?>
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Next_and_Previous_Links lead to blank page.’ is closed to new replies.