I need to show page x of y in single.php
-
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; echo $paged.' of '.$wp_query->max_num_pages; ?> </li> <li> <?php next_post_link(); ?></li> <li> <?php previous_post_link(); ?> </li>
Here is my code but it is showing only — 1 0f 0 —I wanted the first number to change each time I click the next or previous link. Can someone give some help? Please
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘I need to show page x of y in single.php’ is closed to new replies.