pagination issues
-
I am having some issues with my pagination it no longer renders post on the second page, it only shows the first 5 post on the first page:
<?php if($postcount > $postsperpage): ?>
<ul class=”pagination pull-right”>
<li <?php if($paged == 1 ){echo ‘class=”disabled”‘;} ?>>/category/news”>First
<li <?php if($paged == 1 ){echo ‘class=”disabled”‘;} ?>>/category/news/page/<?= $paged – 1 ?>”>Prev
<?php foreach(range(1,$pagecount) as $page): ?>
<li <?php if($paged == $page ){echo ‘class=”active”‘;} ?>>/category/news/page/<?= $page ?>”><?= $page ?>
<?php endforeach ?>
<li <?php if($paged == $pagecount ){echo ‘class=”disabled”‘;} ?>>/category/news/page/<?= $paged + 1 ?>”>Next
<li <?php if($paged == $pagecount ){echo ‘class=”disabled”‘;} ?>>/category/news/page/<?= $pagecount ?>”>Last<?php endif ?>
- The topic ‘pagination issues’ is closed to new replies.