wp_link_pages
depends on four global
s— $page
, $numpages
, $multipage
, and $more
.
I cannot test this right now, but if I remember correctly $page
is the current page and $numpages
is the total number of pages. All you should need is:
global $page;
echo $page;