Wordpress number of posts in pagination


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.