Query:

<?php
global $paged;
if(!$paged) {
query_posts(‘post_type=articles&showposts=6’);
}else {
query_posts(‘post_type=articles&showposts=6&paged=’ . $paged);
}
?>

After end while and before end if:

<div>
<?php previous_posts_link(); ?>
</div>
<div>
<?php next_posts_link(); ?>
</div>

 

 

Advertisements