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 […]
2010-09-03 @ 6:44
[…] WP Page Numbers […]
2010-09-09 @ 14:26
[…] addition, on all post and page types I use the WP Page Numbers plugin to allow users to easily scroll across multiple pages, rather than use the default WordPress […]
2010-09-12 @ 5:39
why don’t you add a button function for going next page or previous page by press arrow key? =)
2010-09-16 @ 17:33
Really nice plugin, but I have some probelm on my localhost server.
When I activate it I get ”The plugin generated 3 characters of unexpected output during activation.
If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”
Everything seems ok, but when I upload an image I’m not seeing thumbnails when it finished upload. It shows only some number, prodably image id.
Images are uploaded but it cause problem with another plugin – Simple Portfolio;/
2010-09-17 @ 2:46
Does anyone know why this thing isn’t showing up? I’ve tried everything that other’s have said to do and it’s not showing up. Anyone help? stef@serafindesigns.com Thanks
2010-09-18 @ 9:07
hi, anybody
i’m starting learning wordpress.
I add this plugin into my simple website.
and then replace this code into loop.php.
and the updateed.it show
* Page 1 of 2
* <
* 1
* 2
what i maked error?this don't show as same as your web page number.why?
please solve me this problem.you can send answer to my email.
thank you for your help.
2010-09-21 @ 9:09
Brilliant plug in! Works beautifully and easy to customise.
2010-10-04 @ 16:42
Hej, Jag försöker att få sidonummer på single post men det är kanske inte meningen att det ska fungera så.
Mvh,
Anders
2010-10-15 @ 14:58
[…] By Jens Törnell | Visit plugin site […]
2010-10-18 @ 23:27
Sir, awesome plugin!
Got it to work instantly, except for Comments.
I see you have your comments paginated too.
I tried pretty much everything in comments.php but still no pagination.
Any ideas anyone?
2010-11-05 @ 7:36
great plugin. Two quick suggestions:
a)
try adding the rel=”next” and rel=”prev” microformats to your older and newer links — that will help auto-pagination plugins read the page.
b)
allow the custom CSS override to be a relative link, that way we can create our own CSS for the plugin but bundle it in with the rest of our template files. This will also help in case there’s an update to the plugin, so you won’t lose all your css modifications when updating.
again, great work!
r
2010-11-05 @ 15:35
I could not understand the wordings of these below. Please help me to display page number in good looking css format.
I have activated the plugin and copy pasted the code in index.php of theme.
Please tell me that what should i do next.
I can not understand below tenses. Please help me
http://www.shiningstuff.com
Theme folder name
Copy one of the theme folders
Edit the ‘wp-page-numbers.css’ to make your changes
Rename your folder copy to a theme name
Upload your folder into ‘wp-content/plugins/wp-page-numbers/’
Set your ‘Theme folder name’ in admin ‘Settings / WP Page Numbers’
‘Update settings’. Done!
2010-11-06 @ 18:51
[…] WP Page Numbers Bringt etwas mehr Übersicht in die Archivseiten. Klebt bei mir gerade etwas unglücklich im Footer, das war auch schonmal besser gelöst, da ich aber gerade sowieso an einem Themewechsel arbeite, bleibt die Leiste derzeit noch so wie sie ist. Im neuen Theme sieht das dann wieder Besser aus! […]
2010-11-12 @ 16:12
Great plugin , i use him. It’s really usefull and very simple to insert it into themes.
Thank you
2010-11-16 @ 8:19
hi, really cool plugin. just one quick question though: how do i check the current page number? i have a content that i only want to show on the first page.
thx
2010-11-17 @ 3:13
I know this is a theme/CSS issue, but I’ve spent weeks trying to figure this out. One one site, when viewing with Firefox, WP Page Numbers adds extra >> characters to the page numbers, but in IE, it looks ok. http://www.dualmonitorbackground.com/
I’ve tried everything to fix it.
2010-11-17 @ 9:33
[…] By Jens Törnell | Visit plugin site […]
2010-12-01 @ 19:53
Thanks to Danny, it works for me now when I replace the code in index.php
2011-01-20 @ 19:05
I used:
and the wp page numbers.
But when I click on next page, the posts are the same.
Anyone know how to fix this?
2011-01-24 @ 19:53
Hi,
Thank you for your work.
Can you fix the .js file or note here the line to change in order to have a W3C valid xhtml document ? To be valid, the ”&” (…&page=X) used for pages links has to be written like this: ”&” .
Thank you.
2011-01-29 @ 23:17
ok, it’s been a while since the last update. are you still maintaining this plugin?
2011-02-02 @ 14:22
It looks great but it does’nt work in my website.
I used this code for the theme
But when I click to next page I get the same posts on the same page.
Did i do something wrong?
Please tell me.
thanks alot
Grts Jasper
2011-02-07 @ 7:15
Hi This is really a good plugin. May I know where can i find the limit of posts per page, so that i can edit according to my need.
2011-02-08 @ 22:14
Doesn’t work in IE 7.
2011-02-20 @ 0:17
I use this Plugin on my site http://www.originbmxco.com its great!
2011-02-25 @ 18:35
how about with theme atahualpa? I can’t realize wp page number for my blog, please help me!
2011-03-07 @ 23:22
thanks alot Grts Jasper I can’t realize wp page number for my blog, please help me!