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-02-22 @ 23:27
You have some great plugins on your post. Your insight and expertise would be a welcome addition to our new community, i hope you will consider joining, and thanks for sharing!
2010-02-26 @ 7:44
[…] 评论插件,比系统自带的强多了,示例见本部右侧最新评论。 WP Page Numbers […]
2010-02-28 @ 8:15
Your plugin works great for me. Thanks for your contribution.
2010-03-01 @ 17:40
[…] plugin for navigation pages (instead of the Next and Previous is called WP Page Numbers authored by Jens Tornell and can be downloaded from his […]
2010-03-01 @ 22:40
Is there a way to specify paging for posts in a specific category instead of all posts?
2010-03-02 @ 16:49
its really helpful.. now i can implement page Numbers plug in very easily to my WP. blog
thanx
2010-03-05 @ 8:54
Thanks Danny it work like a charm
2010-03-07 @ 0:59
Do you by chance have a patch or workaround for the page count errors?
2010-03-10 @ 19:31
Using WP Page Numbers on a multilingual website (with qTranslate) it would be fine to create a localized version of WP Page Numbers. We can contribute the german localization.
2010-03-10 @ 19:40
The localization works with qTranslate, just use the fields of Settings-Text like this:
Pagina Seite
2010-03-16 @ 21:16
The plugin is awesome and I love it. Thanks for the great plugin ! I like the styles.
Just a suggestion, it would be cool if we can change the font size and font style to fit our theme. May be the the background color. Now with only blue it is a little odd when we merge with our theme. Thanks !
2010-03-16 @ 23:16
[…] Page Numbers http://www.jenst.se/2008/03/29/wp-page-numbers Instead of ‘next page’ and ‘previous page’ this allows your blog to use […]
2010-03-19 @ 21:46
nice plugin..i like it :)
2010-03-20 @ 12:20
[…] Seitenzahlen und somit kann man nicht direkt eine Seite ansteuern. Abhilfe dafür schafft das WP Page Numbers Plugin, welches einfach durch CSS angepasst werden […]
2010-03-20 @ 15:00
[…] 7. WP Page Numbers […]
2010-03-23 @ 18:57
Checkout my website link to see how it looks :)
http://www.artstudiosl.biz/
Thanks alot for this wonderful plugin. I used a css template which already comes through the original plugin!
2010-03-24 @ 8:15
[…] WP Page Numbers 0.2 WordPress本身分頁功能只有「上一頁」和「下一頁」,這個外掛可以顯示頁數,方便尋找。 […]
2010-03-27 @ 0:55
Hello and thanks for your plugin, works great as long as I use a while but with a for loop it no longer works here is my code any help would be very welcome
Thanks
Yanik
posts wposts
LEFT JOIN $ec3->schedule wec3_schedule ON wposts.ID = wec3_schedule.post_id
LEFT JOIN $wpdb->term_relationships ON (wposts.ID = $wpdb->term_relationships.object_id)
LEFT JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)
WHERE $wpdb->term_taxonomy.taxonomy = ‘category’
AND $wpdb->term_taxonomy.term_id IN(4)
AND wec3_schedule.start >= CURDATE()
ORDER BY wec3_schedule.start ASC
”;
$pageposts = $wpdb->get_results($querystr, OBJECT);
?>
2010-04-06 @ 23:15
For some reason, when you click the next page, the link is incorrect. It’s adding an extra ”design/” into the URL. I don’t understand, cause I’ve used this plug-in before, and it worked perfect. Any help would be appreciated.
Firefox: 3.6.3
WP: Version 2.9.2
Page Numbers: 0.5
2010-04-11 @ 8:07
[…] WP Page Numbers แสดงเลขหน้าด้านล่าง […]
2010-04-11 @ 9:45
[…] bloğundan gördüğüm WP Page Numbers eklentisi oldukça başarılı. Farklı biçimlerde sayfa numarası seçebiliyor, kendi […]
2010-04-23 @ 0:37
nevermind, i didnt follow the last bit of instruction!
had to add
thank you so much for a great plugin!
2010-04-27 @ 12:52
I do not get anything back calling on comments.php. The plugin is activ, the function is there and can be called, but the function doesn’t produce any output.
What could be the error?
2010-04-27 @ 12:54
ups, text missing:
… caling the function wp_page_numbers() on comments.php …
2010-04-29 @ 11:51
Hi,
help please.
I’m using your plugin for webshop here: http://www.chill.hr/cure/
And it works ok.
Also same pageing is used for ”News” section here: http://www.chill.hr/vijesti/
Now if you click on second page of news you will see that plugin uses index.php page for pagination which is not good because i use different templates for shop and for news.
I hope you understand what i mean.
Is there an option to use different pageing templates?
Thanks in advanced
Kind regards
Vlado
2010-05-05 @ 7:36
installed a long time ago, just start to use it, not bad. but the theme, doesn’t really look good and same as described. wanted to change CSS, too much for me. any one take a look for you? and let me know why?
2010-05-11 @ 11:03
Hi,
i’m using your plugin, and it’s working well on category.php, but on category-xx.php is not. I guess it’s because on specific category’s php i’m using instead of
I just don’t know how to fix this. could you please help me?
thanks!!!!
2010-05-13 @ 10:35
plugin is great! made my own theme that you can see here
http://www.redkoaladesign.pl/category/blog/
2010-05-16 @ 12:53
[…] lo riporto qui nel caso qualcuno ne avesse bisogno. Allora, il plugin in questione si chiama Wp Page Numbers. A mio parere è un plugin molto ben fatto, permette anche di avere diversi stili da cui poter […]
2010-05-17 @ 9:38
hi, i really need help to fix the problem of the plugin not working on the catefory-ID.php files. please!?
2010-05-17 @ 9:38
here’s the link to one of those, for you to see it
http://www.layabozi.com/category/albums-bands-live-music/albums-reviews/
2010-05-17 @ 16:00
Hi!
We’ve built a skin that only displays a certain category on the home page, when we add this plug in, it picks up page numbers etc, but when we click on the page numbers it doesnt actually go anywhere. Any ideas?
2010-05-18 @ 21:26
[…] WP Page Numbers . […]
2010-05-19 @ 18:51
[…] Facebook Connect WP to Twitter WP Page Numbers [Translate] May 12, 2010 | No Comments […]
2010-05-25 @ 14:39
[…] 内置了几个插件的调用代码:WP-PostViews、WP Page Numbers、Simple Tags (Related Posts) […]
2010-05-26 @ 14:07
[…] 2. WP Page Numbers […]
2010-05-26 @ 19:43
[…] schneller geht es mit dem Plugin WP Page Numbers von Jenst.se . Das Plugin bringt von alleine einige nette Styles mit und ist blitzschnell […]
2010-05-26 @ 22:18
Muito Bom O Plugin.
2010-05-29 @ 3:14
Hi
Love this plugin however I think I may have found a bug.
In archive.php using the following code produces an unusual result. Each time the next page loads it re-queries resulting in some entries never showing up in the set.
I need to get the plugin to keep the orinal query results and use them for each following page, NOT requery.
Any assistance would be appreciated and if you would like to see the issue I can provide a link to the test site via email.
Cheers
Rog
2010-05-29 @ 3:17
[code][/code]
2010-05-29 @ 3:18
query_string . ‘&orderby=rand’
2010-05-30 @ 8:58
İts page numbers number one! This themplates very nice thanks Jenst.se!
2010-06-03 @ 11:26
Thanks for the excellent plugin – any idea when you would get around to getting it to validate?
2010-06-04 @ 5:35
Thank you man
It is a wonderful plugin, and working good in my blog
#7Design
2010-06-04 @ 13:16
[…] By Jens Törnell | Visit plugin site […]
2010-06-07 @ 15:24
Really nice plugin. Currently using it on my site and it was a breeze to install and customise to suit the style. One of my favourite plugins.
Thanks
2010-06-08 @ 17:43
hi i’m suing your plugin with the wp code ”&rand” so that my posts appear randomly from within the same category. The posts are split up over several pages using your plugin BUT with the &rand code the same posts appear twice as i go through the posts i.e. with each page i click on using your numbers, WP displays things randomly so there’s a high chance the same post apepars twice across the pages. Any suggestions?
2010-06-10 @ 1:53
[…] By Jens Törnell | Visit plugin site […]
2010-06-15 @ 14:46
Hi. I’m currently using the plugin in our blog (http://www.lamandier-maroc.com/blog ), I think I did installed it the way the readme says but I always have a 404 errors when I try to access pages 2 etc. The blog is currently using WordPress 2.7, I recently upgraded the plugin to .5 version, hoping to solve the problem but no luck till now. I appreciate any help. Thanks!
2010-06-15 @ 19:44
[…] WP Page Numbers 0.2 » Jens Törnell (url) Anstelle von Next Page usw. werden Seitenzahlen angezeigt. […]