By
05/13/2016   Comments Off on Get the current page and total number of pages in a paginated post in WordPress

View all snippets

<?php global $multipage; global $numpages; global $page; ?>

<?php if ($multipage):?>
<div class="page-numbering">Page <?php echo $page; ?> of <?php echo $numpages; ?></div>
<?php endif; ?>

This will print out: Page 1 of 3