Pagination
-
Hello!
I’m having a problem with my pagination.
I want it to work like this:
The output: <1>
The left arrow is a link for privious entries, the right arrow for next entries, and the “1” is the pagenumber.And if there’s no privious entries for instance, i want the arrow to still be there, but un-clickable.
This is my current code (It’s ofcourse not working at the moment):<?php if(count(next_posts_link()) > 0): echo "the link..."; ?> <?php else: echo "the link, but unclickable"; ?> <?php endif; ?> //Below this is working <?php next_posts_link('<') ?> <?php if(!empty($_GET["paged"])) { echo '<strong>'.$_GET["paged"].'</strong>'; } else { echo "<strong> 1 </strong>"; } ?> <?php previous_posts_link('>') ?>
- The topic ‘Pagination’ is closed to new replies.