"Page # of #"-like Pagination.
-
I’ve been looking around to no avail. Anyone know a good way to do a pagination such as this?
https://enrique-ramirez.com/tmp/screen_shot_2010-08-26_at_4.42.32_pm_2abf.png
The current code I’m using:
<?php next_posts_link('<img src="/wp-content/themes/seventhman/images/icons/btn-prev.gif" alt"Previous" />') ?> Page <strong>1</strong> of <strong>12</strong> <?php previous_posts_link('<img src="/wp-content/themes/seventhman/images/icons/btn-next.gif" alt"PNext" />') ?>
I need a way to retrieve the page the user currently is, the number of total paginated pages there are and a way to stop this sentence from appearing if there are no pages at all.
Catch is: can’t use a plugin. So if anyone could point me in the right direction for a functions.php function or something, it’d be greatly appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘"Page # of #"-like Pagination.’ is closed to new replies.