Pagination for a custom page template
-
Hi I am creating a custom page template and I need to insert pagination. I have tried but i cannot get it to work. How do I do this?
Thanks for the help.
<?php get_header(); ?> <div class="modus-grid"> <?php query_posts( 'post_type=albums&posts_per_page=9'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $currentid = get_the_id(); ?> <div class="grid-box grid-block mod-box width33"> <div class="view view-third"> <?php if (get_the_post_thumbnail($currentid, array(167, 167)) != "") { ?> <a href="<?php the_permalink(); ?>" /><?php echo get_the_post_thumbnail($currentid, array(300,600)); ?></a> <?php } else { ?> <a href="<?php the_permalink(); ?>" /><img src='<?php bloginfo('template_url') ?>/images/default.png' alt='Default'/></a> <?php } ?> <div class="mask"> <h2><a href="<?php the_permalink(); ?>"><?php echo get_the_title($currentid); ?></a></h2> <a href="<?php the_permalink(); ?>" class="info">More ?</a> </div> </div> </div> <?php endwhile; endif; wp_reset_query(); ?> <div class="clearfix"> </div> <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Pagination for a custom page template’ is closed to new replies.