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.
2009-03-06 @ 1:42
This is a very good add on. Thank you very much for every single second that you consumed on it ;)
2009-03-06 @ 4:47
hi please help out http://freetamilsongs.in/ this my website i have installed and i have done everything what you told but still it is not working . i got page number theme but when i click page number 2 it doent goto page number 2.please help out
thank for reading my mail.
2009-03-06 @ 18:33
[…] yapmak için Wp Page Numbers eklentisi […]
2009-03-07 @ 18:02
amazing plugin, l was searching something like this for a long time, u can complately make seo friendly sites and index every single pages if u also have 100’s of pages like me. l complately advice this nice plugin
2009-03-07 @ 22:50
Great plugin. The only problem I found is that it shows more pages that I actually have on the main page. Probably some little bug. I’ll try to find it and report here.
2009-03-08 @ 19:17
Thanks you,the plugin is so good.
2009-03-09 @ 3:03
I will have a try, I found that the page navi can not work well on my website, I hope this can help me, thank you
2009-03-11 @ 22:21
I use the plugin with WP 2.7.x. It however outputs only useless code. Here an example:
1
…
…
0
2009-04-13 @ 5:56
Yes I have exactly the same problem – displays fine on the Blog’s main page but when you go to individual posts it displays the 0 … … 1 list items which link to the same page it’s displaying.
2009-03-14 @ 18:44
Great plugin!!! Thank you so much
2009-03-14 @ 19:25
thanks alot, its a nice plugin
2009-03-16 @ 5:15
anyway, can this plugin works on specify category?
2009-03-16 @ 18:28
[…] WP Page Numbers – Cleans up the page numbering for spiders […]
2009-03-19 @ 22:49
i added it to a self defined template which used in one page, but click page 2 always return the 1st page content, what should be included in query_post(????) function?
http://samplewebsite.com/?page_id=5&paged=2
thanks if you could give me some hint….I found your ”Webbplatskarta” page works just fine…
2009-03-20 @ 7:53
I hope there are more good skins , haha~~~~~
2009-03-20 @ 14:41
[…] WP Page Numbers More in Aenean commodo […]
2009-03-22 @ 16:39
[…] WordPress 默认的分页方式不太方便,前几天使用了WP-Pagenavi,非常著名,但是样式不太好看,定制性也差,不容易搭配不同的风格。于是问google,google给了一个更好的选择WP-Page-Numbers,不但样式好看,而且定制性也好,安装也方便,只需要修改三个文件。 […]
2009-03-22 @ 16:44
It’s really a nice plugin and it works very well on WP2.7.1.
2009-03-24 @ 18:19
I used your wonderful looking plugin on my wordpress installation
But unfortunately if we hide any particular category with a Tag like below:-
If we give the ‘cat=-3’ tag to switch off posts from any particular category from showing up then your script does not work on the index.php. Although it shows the menu but if you click on any page only the first page of the blog shows up
2009-03-24 @ 18:33
We found the solution. Use the tag query_posts($query_string . ”&cat=-3”) and it will work without showing category 3 and also no mess on showing the other pages
2009-03-25 @ 21:08
I’m having an issue where the pagination shows up on single posts… http://www.giovannafashions.com/main/?p=283
I’m using WordPress 2.7.1 and Version 0.2 of your plugin. The bug surfaces in every browser I have tried it in.
2009-05-12 @ 15:39
hi there.
my problem is, that the page numbers appear on single pages too.
im using wordpress 2.7.1. and page numbers 0.2.
thanks in advance
2009-03-26 @ 16:12
Im’ using WP 2.7.1 and the only thing close to ”previous_posts_link()” I can find is this piece of code…
Cannot get it to work… do you have some suggestions? Thanks!
2009-03-26 @ 16:13
Im’ using WP 2.7.1 and the only thing close to ”previous_posts_link()” I can find is this piece of code…
Cannot get it to work… do you have some suggestions? Thanks!
$prev_link = get_previous_posts_link(__(‘Newer Entries »’, ‘kubrick’));
$next_link = get_next_posts_link(__(‘« Older Entries’, ‘kubrick’));
2009-04-21 @ 21:20
Sorry i don’t now what can i do ? I have this entry
$prev_link = get_previous_posts_link(__(’Newer Entries »’, ‘kubrick’));
$next_link = get_next_posts_link(__(’« Older Entries’, ‘kubrick’));
Please Help.
Thanks Thomas
2009-03-27 @ 15:00
[…] WP Page Numbers – ersetzt die Weiter- und Zurückseiten im Blog durch fortlaufende Seiten – “Next page” and “Previous page” werden durch Folgeseiten optimiert. […]
2009-03-28 @ 10:36
[…] WP Page Numbers More in Uncategorized […]
2009-03-28 @ 17:00
Hei guys how did you solve problem with same opening pages : i have in main 3 pages to choose. if press next page it returns t osame first page, i see others has the same prpoblem
2009-04-29 @ 10:17
hi tony, did you solve your problem yet?
2009-03-31 @ 5:40
Hello I put it in but it makes my whole right side bar move way down on the screen
2009-04-02 @ 15:51
Hi does this work with Pages?
2009-04-02 @ 17:12
Yes. If you are using a page to display many posts and create a loop with WP Query the correct way, WP Page Numbers will work just fine.
2009-04-05 @ 6:19
[…] WP Page Numbers — JT Pratt recommended this plugin, which is the one I currently use for page navigation […]
2009-04-05 @ 10:11
When a new version with new themes???
2009-04-08 @ 18:00
Is there a possibilty to encoded ampersands in URLs of your Plugin. I need a xhtml validated site.
Thank you for your answer.
2009-04-10 @ 13:23
[…] the plugin page by clicking here. The plugin enable search engines to find out your (older) blog posts with more […]
2009-04-11 @ 13:44
i cant seem to find the ‘nextpostslink()’ and ‘previouspostslink()’ code in my index.php.There is alot of code like next_posts_link(some code here) but changing them gives me a error on line 27.
2009-04-11 @ 18:47
[…] WP Page Numbers 0.2 WordPress本身分頁功能只有「上一頁」和「下一頁」,這個外掛可以顯示頁數,方便尋找。 […]
2009-04-13 @ 21:11
Hi! Great plugin. However I can not use it with a custom query : http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query It does not clip my posts.
Does anyone know a way to get around this?
Thanks,
-Emily
2009-04-14 @ 4:07
[…] Eklenti Ana Sayfası […]
2009-04-15 @ 13:00
[…] ce qui concerne la pagination deux plugins peuvent être exploités PagerFix et WP Page Numbers. Ces deux plugins permettront d’y voir plus clair que les liens traditionnels comme article […]
2009-04-18 @ 10:06
[…] WP Page Numbers 和 WP-PageNavi 半天,最终选择了WP Pages […]
2009-04-19 @ 21:11
[…] WP Page Numbers […]
2009-04-22 @ 8:36
Thanks for the wonderful plugin! Can you please give a hint where to change corresponding CSS file to center the output?
2009-04-23 @ 18:53
[…] Plug-In WP-Page-Numbers ersetzt die Standard Navigation > durch ein durchnummerierte Navigation. Seite 1 | 2 | 3… 10 […]
2009-04-29 @ 6:57
Hi..please help. page only return the 1st page whatever i click which page number.
I use WP 2.7.1 with the plugin wp page number Version: 0.2.
2009-05-05 @ 9:01
finally i solved the problem! need add the code as following ( from Start to End) before the post looping.
2009-05-28 @ 6:52
what is the code you have added to solve the problem i have the same problem can you help me
2009-05-04 @ 15:12
Is there a way to reverse the page numbers? so that the newest posts are always on the largest page number, older posts will go to smaller numbers? Please help!
2009-05-05 @ 12:26
Hi, very nice plugin but when I use it two time (top & bottom of a result page) I have a html validation error: the same id appear two time… Can’t you change the id for a class??
2009-05-10 @ 12:24
Great plugin!!! Thank you so much
2009-05-10 @ 23:57
Hi.
Im very confuse. and i dont want to stuff up my template. please help me.
under Main Index Template (index.php) .. i found.
what am i suppose to be replacing? Everything i saved it, after replacing it, it kept saying my URL cannot be found.
2009-05-13 @ 13:46
I am using this plugin and it works fine on most pages. However, it breaks and only shows the same content on every page when I add a query_post condition:
if ( is_category(‘138’) ) {
query_posts(‘cat=30,31,32,34,35,36&order=DESC’); }
Any advice is truly appreciated.
Christopher
2009-05-14 @ 8:32
The link to Your archive is broken. I’m using the plugin broken link checker to avoid things like that. Maybe that would also be interesting for You.
Thanks for the plugin. I’ll give it a try in my Blog =0)
2009-05-17 @ 23:15
I can’t seem to find the ‘next_posts_link()’ and ‘previous_posts_link()’. I searched in index,archive and search.php and it’s not there. I have the newest version of wordpress.
2009-05-19 @ 11:35
Perfect! Tack!
2009-05-20 @ 0:27
Hey,
If I use ‘&offset=1’ in my query, WP Page Numbers won’t work. It works with some other queries, strangely… what’s up with that?
WP Page Numbers won’t work. What’s up?
2009-05-20 @ 12:27
In relation to my previous post, I just learned today that when you use WP_Query, you don’t get the advantage of the global variable $wp_query, which is why paging will not work. The issue had nothing to do with WP Page Numbers.
I bumped upon a tutorial at http://www.allcms.org/wordpress/paging-and-custom-wordpress-loops/ and it helped me fix my loop! Sorry about my earlier comment!