I am wondering the way i could make i.e 'Page 2 of 13' appear at the base of Wordpress' single.php page.

Let us say a person clicks a publish title around the top of the page, so when it's opened up with single.php the consumer sees what page he's on (as well as the number of are total). Therefore if he selects to see the 3rd publish it might say 'Post 3 of 13'. If then he clicks Next or Previous, he will get 'Post 2 of 13', or 'Post 4 of 13' and so forth.

I have handled to get this done around the top of the page, but can't appear to have it working correctly on single.php

The main reason i would like this really is to achieve the message from a prev and then arrow.

Perhaps you have attempted




Refer here

Here's a good way which will operate in your sidebar:

$page_id = $post->ID;
$page_parent = $post->post_parent;
if ($page_parent) { // there's a parent page, get the children
$args = array(
'parent' => $page_parent,
'child_of' => $page_parent,
'hierarchical' => 0,
'sort_column' => 'menu_order'
else { // no parent, so just get top level pages
$args = array(
'parent' => 0,
'sort_column' => 'menu_order'
$my_pages = get_pages($args);
while ($page = current($my_pages)) { // find this page's position in the page array
if ($page->ID == $page_id) {
echo key($my_pages) + 1;
$result = count($my_pages);
echo " of " . $result;