Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category.
How do I do this? I cant seem to get it work.
Any help would be appreciated
Thanks
<?php get_header(); ?>
<div class="modus-grid">
<?php query_posts(array('category__in' => array(5), 'posts_per_page' => 20)); ?>
<?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-first">
<?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>
<p><?php echo get_the_excerpt( $post->parent ); ?></p>
<a href="<?php the_permalink(); ?>" class="info">Read More...</a>
</div>
</div>
</div>
<?php
endwhile;
endif;
wp_reset_query();
?>
<div class="clearfix">
</div>
<?php get_footer(); ?>
query_posts()? – Chip Bennett Nov 29 '12 at 13:40