WP Page Numbers
2008-03-29 @ 18:44I made a paging navigation plugin for WordPress that will be an alternative to the ”Next page” and ”Previous page”. Instead it uses numbers which makes it easier for users to choose what page to go to. It also makes a tighter internal link structure which makes it easier for search engines to find your posts.
Info and download
- Birth date: 2008-03-29
- Last updated: 2009-07-05
- Version: 0.5
- Tested with: 2.3-2.8
- Download: WP Page Numbers
- Other versions: WP Page Numbers
Themes to choose from

All the 5 themes are included from start and are available in admin.
Screenshot
This is what it looks like if you don’t change anything (default paging theme):
![]()
You can also try it out as a live demo at the bottom of my blog.
Options
- You can set all the texts and arrows to what ever you want
- You can limit the number of pages shown at the time
- You can create paging stylesheets themes (if you don’t want to overwrite the default theme)
- You can turn off the stylesheet
- You can turn off the page information (page 3 of 5)
- You can turn off the page numbers
- You can turn off the first and end page numbers
- You can turn off the arrows
Updates 0.3 – 0.5
- Fixed bug with page numbers disappearing
- Added optional start and end code link wp_page_numbers($start, $end)
- Changed get_blog_info(url) to get_blog_info(wpurl)
- Changed get_settings (deprecated) to get_blog_info (bugfix)
- Added missing echos, which should fix the URLs to the preview images in admin
- Fixed 0 … 1 problem by checking if the page is front page or archive
Updates 0.2
- Put some ”reset”-code into the themes stylesheet to make the navigation bar look correct in all themes
- 5 WP Page Numbers themes to choose from
- Some layout changes in admin
Install
- Upload the FOLDER ‘wp-page-numbers’ to the /wp-content/plugins/
- Activate the plugin ‘WP Page Numbers’ through the ‘Plugins’ menu in admin
- Go to ‘Options’ or ‘Settings’ and then ‘WP Page Numbers’ to change the options
Usage
- Replace the the ‘next_posts_link()’ and ‘previous_posts_link()’ with the code below in theme (archive.php, index.php or search.php). If you can’t find it, place it between endwhile; and endif; in your theme.
-
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
Advanced usage
This plugin uses only WordPress own string values, no own SQL-querys is written. That means that you can use this plugin for more advanced use.
Example: You have a page which contains the query_posts() function and a loop to get some posts into the page. In that case you can use WP Page Numbers (see usage). If the posts are less than what is set in admin, the navigation will be hidden.
Contribution from users
- Citrus theme from Abdelilah Nassib – Demo at www.baissi.com/blog
- Russian version of WP Page Numbers at lukjanow.ru
Known issues
- WP Page Numbers count wrong sometimes – Very high priority
- Odd permalink structure makes the page numbers link wrong – High priority
Suggested features
These features could be included in future versions of WP Page Numbers.
- Option to center the page numbers – Normal priority
- Change the containing ID to an containing class to make the page validate with multiple page number sets – High priority
- Localizable WP Page Numbers for different languages – High priority
Bug report
If you have found a bug I want to know about it so I can fix it.
- Tell me your plugin version, WordPress version and what browser you use.
- If you suspect a collision with another plugin, tell me what plugin you suspect, or a list with suspected plugins
- Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!
Contribute
The best way to contribute is to spread the word, link to this page, blog about WP Page Numbers or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.







2010-06-20 @ 12:24
[...] WP Page Numbers – I guess this plugin is really well known. Instead of only having the “previous” and “next” links this plugin features page numbers. This helps a lot while navigating through pages and is much faster. [...]
2010-06-21 @ 21:31
i added this pages navigation plugin in my blog but i have some issues, as google search engine is showing some pages like this
http://www.google.com/search?hl=en&rlz=1C1AVSX_enPK383PK383&q=www.prayfornathan.org/blog/page/83&aq=f&aqi=&aql=&oq=&gs_rfai=
http://www.prayfornathan.org/blog/page/83?p=cphyaxfbdwdvccs
why this string ”cphyaxfbdwdvccs” although it should be like this http://www.prayfornathan.org/blog/page/83 also in robots.txt i set disallow blog/page but search engine still showing these url with this type of ”cphyaxfbdwdvccs” random string in the url.
can you guide me how can i get rid from it
thanks
2010-06-23 @ 17:28
[...] added my own theme for WP Page Numbers and added it to all post types (except single post display) by [...]
2010-06-30 @ 3:48
I installed the WP Page Nnumber, WordPress 2.9.2.
Theme StudioPress 1.2 by Daily Blog Tips
Installed the plugin and nothing happened. I looked in the style sheet for ‘next_posts_link()’ and ‘previous_posts_link()’ or endwhile; and endif; in your theme. But I did not find either. I am not a coder.
I did find #nextprevious {
padding:10px;
font-size:80%;
}
Would that be what I need to replace? I hope you can help me make this work.
2010-07-03 @ 13:23
[...] Page Numbers Plugin [...]
2010-07-07 @ 2:37
[...] Pagination Plugin – Do not build a blog based site without one of these. These will help keep your posts in the index by creating a good cross linkage structure in your site. Google doesn’t like orphan pages and as time passes old blog posts look an awful lot like that. This plugin convinces Google that your older content is still very much loved and part of the family! [...]
2010-07-07 @ 15:07
Thanks you so much.. that great plugins
http://www.borneo.web.id
2010-07-11 @ 15:07
[...] WP Page Numbers [...]
2010-07-16 @ 22:24
Do I still use to show the numbers? or what do I do to start showing page numbers.
Thanks
2010-07-17 @ 0:22
How do I get it to work, do I still use or something else.
2010-07-17 @ 14:01
[...] WP Page Numbers [...]
2010-07-23 @ 13:42
Hello , i have activated your pluggin and afer i replaced the ‘next_posts_link()’ and ‘previous_posts_link()’ with
On the option i can’t chose the stylesheet.. i mark it and when i give update options the mark disapear.. any idee why? on the blog is displaying like this :
* Pagina 2 din 10
*
So what should i do? email me back
2010-07-23 @ 16:50
I have made it , for there who got the same problem..
After you replace that code .. upload the ”img” folder in your theme and then copy the entire css source in your style.css from your them.. then will work :D
Btw great plugin :d update him with more styles
2010-07-25 @ 18:56
Why point people to a place for help when you won’t help them? I have the same questions but it would be a waste of my time to ask it since you aren’t answering any one else’s questions.
Unless you’re a code monkey, the instructions are greek… Find another solution because you won’t get help… If I find some help on another blog or in google, I’ll post it…
2010-07-30 @ 6:01
Need help with the heatmap theme and this plugin? Hit me up. http://www.serious-things.com
hint: it’s in common.php
2010-08-05 @ 10:54
Hi,
I installed your Plugin on http://jamioo.com but it is still the same WP Pagination.
Do I have to hard code something?
2010-08-09 @ 16:15
[...] http://www.jenst.se/2008/03/29/wp-page-numbers [...]
2010-08-13 @ 14:52
Hello,
This is an awesome plugin. Thank you.
Bless you
2010-08-14 @ 5:08
[...] Download WP Page Numbers [...]
2010-08-16 @ 9:24
Hi,
I’m trying to use this on the index.php page where I have all my post fully displayed. The numbers/links shows up the way they should but they don’t link to the corresponding pages. The URL updates but you end up on the same page as before. Any idea of why this happens? I’m using WordPress 3.0.
Thank you in advance,
/John
2010-08-20 @ 10:42
Hey John,
i had the same problem, but i got it fixed after a short time of searching in the wp codex.
Try this before your loop, that worked for me:
Jens
2010-08-20 @ 10:43
query_posts(‘paged=’.get_query_var(‘paged’).”);
2010-08-18 @ 18:56
Hey there,
Just wanted to let you know that
1. Nice plugin thanks for that :)
2. It seems to be coliding with the plugin ”Permalink Validator” http://wordpress.org/extend/plugins/permalink-validator/ . Not that I would need it but it’s just a head up :)
Regards
2010-08-22 @ 1:14
Hi, we’re trying your plugin out on our website but it’s showing more pages than we have (5 instead of 2). Number of pages is limited to 2 in the WP-admin.
2010-08-26 @ 11:55
[...] http://www.jenst.se/2008/03/29/wp-page-numbers [...]
2009-05-11 @ 0:01
Do i replace
next_posts_link(__(‘« Older Entries’, ‘default’)) with
then, also replace
previous_posts_link(__(‘Newer Entries »’, ‘default’)) with
..
or am i doing something wrong?
2009-05-26 @ 17:15
Replace this code in archive.php, index.php or search.php
With this code
It worked for me but maybe someone else has a different way.
CHEERS :)