Getting navlink to show multiple previous posts
-
I’m using a template called Nishita – for photo blogging. In Options > Reading I have it set to Show at Most 10 posts. However, the Previous and Next nav buttons will only show a single post at a time. Can someone help me out here on getting the navlinks to show ten posts? For instance, after a reader views the latest ten posts on the front page, the reader can click Previous at the bottom and be shown the older ten posts. It sounds pretty simple but I’ve had no luck with this.
LINK to my site
Here is my template’s index.php code:
<?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- BEGIN #photo --> <h2 class="photo-title"><span><?php the_title(); ?></span></h2> <div id="photo"><div id="photo-inner"> <?php the_content(); ?> </div></div> <!-- END #photo --> <!-- BEGIN photo meta --> <div id="photo-meta"><div id="photo-meta-inner"> <ul> <li><?php the_time('F jS, Y') ?></li> <li><?php the_category(', ') ?></li> <?php $wp_query->is_single = false; ?> <li><?php comments_popup_link('No comments', '1 comment', '% comments','Comments closed'); ?></li> <li><a href="<?php the_permalink() ?>" title="Permanent Link to '<?php the_title(); ?>'">#</a></li> </ul> </div></div> <!-- END photo meta --> <!-- BEGIN navigate --> <div id="navigate"><div id="navigate-inner" class="clearfix"> <?php $wp_query->is_single = true; ?> <span class="previous"><?php previous_post( '%', 'Previous', '' ) ?></span> <span class="next"><?php next_post( '%', 'Next', '' ) ?></span> </div></div> <!-- END navigate --> <?php endwhile; ?> <?php endif ?> <?php get_footer(); ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Getting navlink to show multiple previous posts’ is closed to new replies.