Posted By

Ben on 12/17/09


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

zzgmwei
xmartyxcorex
BrianCoyDesign


Wordpress number of posts in pagination


 / Published in: PHP
 

  1. <?php if(is_home() || is_front_page()) {
  2. $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
  3. query_posts('showposts=3&paged='.$page.'&posts_per_page=5');
  4. } ?>

Report this snippet  

You need to login to post a comment.