Welcome to the Treehouse Community
Looking to learn something new?
Fernando Souza11,330 Points
How can I show page x of y in single.php?
I'm in single page which shows the first page, the one I'm looking, and the total of posts of the same taxonomy. Like 1 of 5... but now I can't get the current page neither the total.
$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>