wp_link_pages depends on four globals— $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;
Related Posts:
- Manually set global $post vars with an ID, in order to use template tags
- How to prevent a post from being deleted?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Limit access to posts/pages by user roles
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- How to work with Syntax Highlighter Evolved?
- User-Specific Timezones? Hack? Plugin?
- jQuery plugin only in one page/post
- How To Ignore a Filter On Applying Filter the Content In a Function
- Auto-post to multiple sites like Posterous? [closed]
- Share buttons on article footer
- How to create a Page alias in WordPress
- How to extract images of post and pages excluding header and logo image in wordpress?
- Dynamic HTML not displaying at respective place
- Fastest way to loop through all posts?
- Is there a plugin to display certain posts on certain pages? [closed]
- How to filter content post only on save
- Tag link suggestion plugin
- Collaborative post submission [closed]
- Is there plugin to show recent posts from one website in the widget area of another?
- How use %like% in sql statement wordpress
- Get the url of the full sized attachment image using post ID?
- How to get 1 or 2 specific posts on top of my wordpress blog?
- How to slice an array using posts_per_page? [closed]
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- The problem with WordPress Importer
- Hiding posts – WP Hide Post not working
- submit posts by unregistered users in wordpress
- Any built-in function to associate a post to category through a plugin?
- Display post lists in 2nd paragraph
- Matching Chapters to a Custom posts [closed]
- WordPress display breadcrumbs using Yoast plugin [closed]
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Two problems on my WordPress installation [closed]
- Excerpts on category page
- How to pull email and name from Flamingo plugin
- Which widget to use for display category post with view more? [closed]
- External RSS feed to WordPress Portfolio
- how to add text to posts from tags
- Would Gutenberg be considered a PlugIn?
- the_tags : can we insert a class
- pagination on data fetched using SQL query
- How to delete all trashed item in one-go
- How to get the first post and second post in a wordpress blog?
- How do I publish portfolio items with a future date?
- WordPress plugin Post Creation [closed]
- Flickering sidebar when scrolling page [closed]
- Moving FB comments at the end of page
- Where Should i write the code for wordpress ajax voting?
- how to execute some code after a post is published in WordPress [duplicate]
- Post status doesn’t update to ‘future’ every time?
- trigger email when post is published by someone a user follows
- Grab ID from post from plugin and use it to create an object
- WP::is_main_query() Not Working
- I would like to remove date display on photo preview
- Embed PDF into wordpress
- Hook Scripts and Styles in WordPress
- Get data from wp_posts of mysql in to variables of wordpress-php script
- WordPress plugin: Getting posts where checkbox selected
- Block wordpress style for my plugin admin page
- WordPress “Add new tag” button is not working
- how can authors to define custom pages?
- Problem with ajax plugin for refreshing posts
- Add posts from other WordPress blog to the current one
- Link Posts to External URL
- How do I allow users to supply a photo/image to be used instead of the grey/white silhouette?
- Update existing post dates to random dates and time
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- WordPress hide post from custom post-type on a single page
- Show post object of any page in frontend
- Trying to add a new feature in my wordpress website
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Pagination (including title of each page) in a post for a long posts
- How to echo a PHP Code After the Content
- WordPress Product Detail and catalog
- WordPress CPT Url metabox collection
- Identify if the_post hook is being called from the admin post list
- Include post_date in search
- Add Filter to get_next_posts_link
- How to Save settings of custom tab product page in admin side in a database?
- Displaying friend’s posts only
- Add new post using a page inside the website
- Trending Tags based on post views
- Hidden Some Setting on Post or Page [duplicate]
- WordPress list child pages of custom post type
- Posts are deleted everyday at night
- Retrieve post thumbnails
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Insert data in custom table during new post creation
- Capturing POST data
- Notification When Post Approved
- Embedding BitBucket Code in Posting
- Windows 10 Printer that Sends to WordPress [closed]
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- Can i have limit posts on a specific category and automatically remove older ones?
- Getting 400 Error in wordpress website
- Difficult case to solve – Select + select = result(related data)
- How to show custom post type in all post section?