I've been looking around to no avail. Anyone know a good way to do a pagination such as this?
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.