Pagination not working while using Static front page

03 Nov Pagination not working while using Static front page

Some times while we using pagination for our blogs it is working well through index.php but not while using static front page right ? we can overcome this using the following codes

<?php
global $paged;
if(!$paged) {
query_posts(‘showposts=10’);
}else {
query_posts(‘showposts=-1′.’paged=’ . $paged);
}
?>

No Comments

Post A Comment