WP Digg Style Pagination Plugin V0.2 Beta
[DEMO][Download][Some styles for your pagination]
WP-digg style pagination allows to add or replace the Wordpress pagination by one easy and more comfortable navigation like Digg, Flickr, Meneame and Sabrosus.
The creation of this pagination plugin was based on the modular version built from the original created by strangerstudios.com.
This implementation does not require the inclusion of the parameter "file" in where is specified the file in which the data of the present page are sent, since WordPress do it automatically.
In order to install and use the plugin:
- Download the plugin, upload the pagination.php plugin to the folder wp-content/plugins on our Wordpress installation.
- Activate the plugin in the Plugins section of the admin control panel.
- Open the folder wp-content/themes/
/footer.php or header.php Call the pagination function as the next example, and add to the section of the theme where we want to appear the pagination.
<?php if(function_exists('pagination')) pagination(); ?>Customizing the pagination output. Specifying the amount of adjacent links to the present page in which we browse.
<?php if(function_exists('pagination')) pagination(2); ?>And just like the previous one plus a second parameter that controls the words by defect on the pagination.
<?php if(function_exists('pagination')) pagination(2,array("Anterior","Siguiente")); ?>- Finally you can take one CSS Style for your pagination from those of the list
If you wish to use the pagination in some of your systems programmed by own account you can use the Digg Style Pagination Class. A version easier to implement, using classes for PHP version 4. The implementation is simple, is necessary to include the class with a require or an include. We defined basic properties for pagination such as an amount of elements to paginate, elements by page, page to which the element "page" will be sent, you need a CSS style and finally we generate the pagination to show it. Continue reading here.
If your are using WP 2.3 you need to change the line 22 by this otherPlugin Version 0.2 (2007-04-30)
- Solved the problem with category pages for WordPress 2.1.3
Plugin Version 0.1 Beta (2007-03-10)
- Compatible with WordPress 2.1, 2.0 (Other versions I don't know)
- If there aren't pages to show digg-style-paginator it will not appear.
101 Comments
Make A CommentComments RSS Feed TrackBack URL




March 13th, 2007 at 12:19 am
Mano! avientate uno para blogger, jaja por eso y mas razones en mayo cambio a wordpress ... felicidades Vic! que buena aportacion para wordpress!!
March 13th, 2007 at 6:18 pm
[...] de la Rocha, acaba de presentar WP Digg Style Pagination. Un útil plugin para reemplazar el paginado por defecto de Wordpress, por otro más ameno para [...]
March 13th, 2007 at 6:21 pm
¿cuantas consultas a la base de datos consume? ¿ralentiza mucho el blog?¿se podría poner para paginar los comentarios? es lo malo de estos sistema de paginación. gracias si alguien me responde.
March 13th, 2007 at 9:31 pm
March 13th, 2007 at 9:46 pm
[...] de la Rocha, el incansable de los algoritmos acaba de presentar el WP Digg Style Pagination, un plugin para reemplazar el paginado por defecto de Wordpress al estilo [...]
March 13th, 2007 at 9:56 pm
Para los comentarios existe Paged Comments, igual Victor y te sirve como base para hacerlo estilo Digg
March 16th, 2007 at 4:22 pm
[...] Mis Algoritmos El acordeón que todos necesitamos… « WP Digg Style Pagination Plugin [...]
March 27th, 2007 at 2:55 pm
[...] Here is another “Digg-Like” pagination plugin. I initially tried to install it on my blog but it did not work. Not being able to understand the [...]
March 27th, 2007 at 6:47 pm
Victor,
I just installed the plugin. It works good.
You need to take out spaces between "< ?php"
March 30th, 2007 at 7:23 pm
Hola, a mi no se me ve. Me explico lo he instalado, lo he activadom he quitado el espacio entre "< ?php"
March 31st, 2007 at 6:26 am
joder lo siento, no puedo poner el simbolo "mayor que"
pues eso que he hecho todo lo que se indica y no me muestra nada... ni da fallo ni nada, simplemente no me muestra nada
March 31st, 2007 at 8:05 am
[...] Mis Algoritmos » Blog Archive » WP Digg Style Pagination Plugin Plugin de Wordpress para crear una paginacion al estilo de Digg o Flickr. ¿Quién dijo Podcaster? (tags: wordpress plugin plugins navigation pages) [...]
March 31st, 2007 at 1:42 pm
K40s, he creado una liga en el foro para evitar llenar de preguntas aquí
http://www.mis-algoritmos.com/foro/topic.php?id=18
Por cierto, para poner el símbolo "Mayor que" > o "Menor que" < Se debe utilizar su entidad html: >, < o >, < respectivamente.
Para lo que querías escribir sería así "< ?php"
April 3rd, 2007 at 3:19 pm
Can this plugin work with the "" like for paged posts?
I have your plugin on a 2.1 test setup, and all of the pagination links look like Digg except the nextpage-paged posts links.
Any way to edit the plugin file to make it work with the nextpage links also?
Thanks, and thanks for making a great plugin.
April 3rd, 2007 at 3:22 pm
Forgot that would not show up.
I meant can the plugin work with the built-in "nextpage" links that let you have paged posts:
See this page of the Wordpress Codex for what I mean.
April 4th, 2007 at 7:50 pm
@J.B: Plugin does not have that functionality.
April 12th, 2007 at 8:31 pm
[...] WP Digg Style Pagination Plugin WP-digg style pagination allows to add or replace the Wordpress pagination by one easy and more comfortable navigation like Digg, Flickr, Meneame and Sabrosus. [...]
April 13th, 2007 at 1:38 pm
[...] plugin que em permetés fer el que volia, i vaig trobar-ne un que a priori em satisfeia bastant, el WP Digg Style Pagination Plugin. Però em va passar el mateix que aquella vegada: no em funcionava del tot bé per algun error, i [...]
April 14th, 2007 at 11:59 am
Thank you for the great plugin.
I was having some trouble getting it to work, but finally got it up and running. However, it doesn't seem to work for the archive pages -- monthly archives, category archives, etc. It only works on the front page. Is there a way to make it work on the archive pages?
Thanks.
April 14th, 2007 at 12:14 pm
Forgot to mention -
I originally tried it in WP 2.0 and it refused to work no matter what I did. After upgrading to 2.1, it began to work on the front page, but not the archive pages.
The current version of the blog is 2.1.3 and the function is being called after the 'endwhile' in the loop.
April 14th, 2007 at 5:31 pm
@Becca White
I will update to 2.1.3, and I will prove, hope.I have updated to version 2.1.3, have proven with the Archives and the pagination is correctly but, with the categories it does not work correctly.
I will play a little with the code and I will tell them soon.
April 14th, 2007 at 7:52 pm
I have solved several of the problems related to the writing, beginning by the space between the symbols of beginning of code PHP "<? php". By this part I do not believe that the problems continue appearing with the code, nevertheless, I do not know the probability that of the code works correctly in older versions of Wordpress 2.1, but I will be working according to bugs/problems that you are sending to me.
hmm, I am having enough problems with the code, the problem is in the line of SQL query (
$request) because it makes a...LEFT JOIN..., although still I have doubt.I hope to be able to solve problem the more soon.
Sorry my English, I am translating in the Google translator.
I Speak and Write in spanish
April 16th, 2007 at 4:41 am
Era una de las cosas que tenía pendientes , funciona correctamente, y a la primera!!
saludos
April 21st, 2007 at 2:34 pm
[...] Digg Style Pagination Adds a Digg style pagination. [...]
April 24th, 2007 at 1:17 am
[...] Digg Style Pagination Plugin [Web] [Demo] [Some styles for the pagination] allows to add or replace the Wordpress pagination by one [...]
April 24th, 2007 at 10:29 pm
First of all, AWESOME plugin! I don't know why this isn't built-in to WP but thank you for building it.
I really needed it to work for categories, not just the homepage so I took a closer look at the $fromwhere part of the query.
I ran the queries for the homepage and the category page in my phpMyAdmin. The results were very different. For the homepage, the query just gave me the COUNT(*) of all the rows.
But when I ran the $fromwhere query for the category page, it gave me as many rows as their were results, with each row's COUNT(*) value equal to 1.
So, to fix this, I removed "GROUP BY wp_posts.ID" from the $fromwhere part of the query. This gave me a functional pagination result for my category pages!
So, to modify the pagination.php file to get it to work with categories follow these instructions:
AFTER THIS:
preg_match('{FROM\s(.*)\sLIMIT}siU', $request, $matches);
$fromwhere = $matches[1];
INSERT THIS:
if (is_category()) {
$fromwhere = str_replace("GROUP BY wp_posts.ID", " ", $fromwhere);
}
Anyway, this worked for me. From this, you may be able to figure out a more efficient way to do it.
Thanks again for an AWESOME plugin!!!!!!!
Eric
April 25th, 2007 at 1:39 pm
[...] [WP-Digg Style Pagination Plugin] [Some Styles for your [...]
April 27th, 2007 at 7:26 pm
[...] Mis Algoritmos is at it again with a digg-style pagination plugin for Wordpress based on this [...]
April 28th, 2007 at 7:37 am
Wordpress Pagination Plugin For SEO
How well are your older posts being crawled by search engines?
If your blog contains hundreds or thousands of posts you could be in DEEP trouble.
Pagination will place your older posts deeper and deeper in your directory. Several layers or several doze...
April 30th, 2007 at 3:43 am
Hola Victor , No funciona la paginación para las categorías, alguna pista o solución ??, parece que arriba dan la respuesta, pero my english is bad
Gracias
April 30th, 2007 at 10:13 am
Si, ya tengo la respuesta, lo solucionaré cuanto antes jejeje
April 30th, 2007 at 10:43 am
[...] *Digg Style Paginator - inaktiv: Funktion ist vergleichbar der hier benutzten Blätterfunktion (unten) [...]
April 30th, 2007 at 5:56 pm
Any news on the fix for the category pages? GREAT PLUGIN! I love it!
April 30th, 2007 at 6:45 pm
Plugin Version 0.2 (2007-04-30)
I'm sorry to be late, but I have much work in the company
Again, Sorry my bad English
May 1st, 2007 at 12:38 pm
uff, una lástima, me hubiera encantado que funcionara para los comentarios que es lo que he estado buscando sin éxito, el plugin de keyvan.net es demasiado antiguo.. http://www.keyvan.net/code/paged-comments/
Saludos
May 2nd, 2007 at 5:12 am
Gracias Victor funciona correctamente en categorías tambien.
May 2nd, 2007 at 5:44 am
sólo un detalle (www.djsanroman.com/category/grupos-de-musica/) en algunas categorias muestra más páginas de las que hay en realidad
May 2nd, 2007 at 10:01 am
Hmm lo revisaré, gracis @san roman
May 3rd, 2007 at 7:25 am
Instead of:
$sqlStr = "SELECT COUNT(*) FROM $fromwhere";Should be:
$sqlStr = "SELECT COUNT( DISTINCT (post_id) ) FROM $fromwhere";It gave me way too many pages before this patch
(54 instead of 33)
May 3rd, 2007 at 10:27 am
Thanks ikari
!!
May 11th, 2007 at 4:53 am
Thanks, I'm using this plugin on my site and it works like a charme.
May 13th, 2007 at 7:15 am
[...] Gerade installiert, sieht ganz nice aus und funktioniert einwandfrei. Macht das Navigieren durch die Seiten einfacher und kommt bei Suchmaschinen gut an. [...]
May 20th, 2007 at 2:58 am
[...] Visit [...]
May 21st, 2007 at 5:18 pm
Thanks for this great plugin! It works really well and I haven't experienced problems yet. Digged!
May 26th, 2007 at 3:22 am
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
May 27th, 2007 at 11:23 pm
[...] descubro en La mate por un yogur un plugin que nos ayudara a lograrlo de forma fácil y rápida. WP Digg Style Pagination es un plugin para WordPress creado por mis-algoritmos y es precisamente este plugin quien nos [...]
May 28th, 2007 at 5:03 am
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
May 28th, 2007 at 6:54 am
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
May 28th, 2007 at 10:17 am
Quedan muy bellos...gracias Victor por el plugin ^_^
May 28th, 2007 at 1:06 pm
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
May 28th, 2007 at 9:14 pm
Extraordinario plugin. Funciona perfecto y a la primera, sin ningún problema en la versión 2.2. Muchas gracias.
May 29th, 2007 at 2:24 pm
[...] WP-Digg Style Pagination Plugin - He editado el fichero /wp-contents/themes/unnamed-one-021beta/navigation.php para que mi tema [...]
May 30th, 2007 at 2:11 pm
Hi Victor, thank you for providing such a nice plugin. Works smoothly on my blog. And works on WP 2.2, too.
May 30th, 2007 at 7:40 pm
Por nada
¡Gracias a ustedes por usarlo!
Thanks! Thanks
May 31st, 2007 at 10:49 am
I don’t want to wait till the end of Summer
, I want it now. Who with me?
save your time and join me.
June 1st, 2007 at 12:35 am
[...] plugin se llama WP Digg Style pagination, y podeis descargarlo aquí. Luego solamente hay que subir el plugin, activarlo y poner el código donde queramos que aparezca [...]
June 3rd, 2007 at 5:05 pm
[...] Digg Style Paginator de Víctor de la Rocha para la paginación de los posts. [...]
June 5th, 2007 at 2:12 pm
Definitivamente no me funciona con la version 2.0.2 de Wordpress
Algun fix?
June 5th, 2007 at 4:11 pm
@dubó Te recomiendo actualices a la versión más nueva de WordPress.
June 6th, 2007 at 6:09 pm
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
June 17th, 2007 at 5:53 pm
[...] se si se habran dado cuenta, pero aqui en el blog instale un plug in para wordpress que se llama WP-Digg Style Paginator tambien lo quise instalar en war-ez pero como tenia una version vieja de WP no funcionaba bien, asi [...]
June 18th, 2007 at 1:20 am
[...] themes de WordPress y aún no apliquen esta técnica, para eso utilizaremos ahora el plugin para la paginación tipo Digg. Donde Nikko nos explica como usarlo. A lo que me gustaría [...]
June 18th, 2007 at 2:10 pm
I tried your pagination plugin, at it seems to work fine.
I have two questions for you, however:
1) If I have a number of pages, and click the page number 3, then the number 2 will appear twice - like this:
« Forrige side12...234...1314Næste side »
2) I can't seem to make spaces between the numbers work. How can I adjust that, becaus as it is now, it looks like above, with no spaces?
Greetings and thanks for a much needed plugin,
Michel
June 19th, 2007 at 6:49 am
Well, I solved the CSS problem - it seems that I had to integrate the styles into my themes CSS in order to get it to work, the CSS included in the plugin folder is not used..
However, I still have trouble with thedouble appearance of number 2 when activating page 3. It looks like a bug to me.
Will there be any way to tweak the plugin to have more than one page before and one after, when in the middle of the pages?
June 24th, 2007 at 12:33 am
Que onda Victor, esta muy bueno el plugin, muchas gracias
pero mira estoy teniendo problemas con las categorias y al comenzar a leer los comentarios me di cuenta de que mucha gente lo tenía... pero me sorprendió que al llegar a los últimos comentarios se supone que eso de las categorias ya esta corregido en la versión 0.2 para Wordpress 2.1.3, pero yo tengo Wordpress 2.2 y estoy teniendo problemas con las categorias. Puedes verlo aquí Me da el siguiente error:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT count(DISTINCT post_id) FROM
June 24th, 2007 at 4:39 am
[...] *WP-Digg Style Paginator :Este plugin nos ayuda a hacer la paginación mas vistosa en nuestro wordpress. Paginacion al estilo digg, mas “web 2.0″ ;). Post donde explico como instalarlo aqui. [...]
June 24th, 2007 at 11:49 am
@Diego Revisaré eso, y trataré de tener una solución durante los próximos 15 días. Estoy en exámenes en la facultad, y no he podido atender bien el blog
June 24th, 2007 at 1:20 pm
[...] ao final da página principal, já está em funcionamento aqui no pBlog, não precisa nem visitar o site do desenvolvedor para vê-lo funcionando. [...]
June 24th, 2007 at 7:01 pm
Ok, muchas gracias, suerte en tus exámenes
June 25th, 2007 at 3:40 pm
Hello to the author of this great plugin! I've found a pagination problem win this plugin when you combine it with IMP Download (http://www.inmypad.com/2007/01/wordpress-plugins-imp-download/). The number of pages do not match with the real number of posts. IMP Download creates "inherit" entries to store download URL's, that's the reason why appear more pages available than posts. It is possible to solve it? Thank you!!
June 25th, 2007 at 5:12 pm
Solution? Will be nice some function to be able to exclude posts from count. I need to exclude posts with "post_type" 'attachment'.
July 14th, 2007 at 7:42 am
[...] außerdem die bessere Durchblutung der Webseite, folglich dürften auch Suchmaschinen Pagebar oder Pagination wohlwollend gegenüberstehen. Erstere Erweiterung ließ sich problemlos unter WP 2.0.10 [...]
July 19th, 2007 at 8:38 pm
[...] -Digg Style Pagination - Rápido e fácil de configurar permite mudar a forma de paginar o blog tem vários estilos CSS que podem ser aplicados ao tema. [...]
July 22nd, 2007 at 12:53 am
[...] Digg Style Pagination [...]
July 26th, 2007 at 12:59 am
[...] Mis Algoritmos Blog Archive WP Digg Style Pagination Plugin adresindeki eklentiyi indir. O adreste kurulum ekli de anlatlyor.. __________________ Snrl Sayda PR5 Link 15 YTL [...]
August 4th, 2007 at 3:31 am
[...] WP-Digg Style Paginator qui permet de rajouter une pagination sur votre home, plutot que l’habituel précédent/suivant [...]
August 11th, 2007 at 5:52 am
[...] WP Digg Style Pagination es un plugin para Wordpress que nos permite mostrar en nuestro blog el típico sistema por páginas: Anterior - 1 2 3 4 5 ... - Última Es muy fácil de instalar y se puede editar el CSS para adecuarlo a nuestro gusto. En la página del autor del plugin puedes encontrar todas las instrucciones para configurarlo e instalarlo. [...]
August 12th, 2007 at 10:36 am
[...] Pagination - Com esse plugin você coloca a paginação bem diferente do padrão do Wordpress, ao estilo do Digg, Flickr e vários outros estilos. [...]
August 16th, 2007 at 9:16 am
[...] Well, I can’t really take credit for the system myself, I simply installed a plugin called Digg Style Pagination. The reason it’s named so? Well, it’s based on the pagination mechanism found at [...]
August 20th, 2007 at 6:22 pm
[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]
August 21st, 2007 at 9:31 am
[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]
August 23rd, 2007 at 3:58 am
[...] Digg Style Paginator [...]
August 29th, 2007 at 10:41 am
[...] plugins que mejoran significativamente la estética y la funcionalidad. Quizás el más conocido es WP Digg Style Pagination Plugin con la ventaja que es altamente configurable en estilos que imitan los de famosos sitios o [...]
September 1st, 2007 at 5:57 am
[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]
September 8th, 2007 at 10:55 am
[...] Pagination 플러그인에서는 UTW 태그 페이지를 페이징해주지 않습니다. 카테고리나 메인 인덱스에서는 해주는데 말이죠. 플러그인 페이지에서는 언급이 없길래, WP-PagiNavi 플러그인을 참고해서 해결해봤어요. [...]
September 30th, 2007 at 3:04 am
[...] si tienes activado el plugin WP-Digg Style Paginator y has actualizado wordpress a la versión 2.3, al entrar en cualquier categoría, al final de la [...]
October 8th, 2007 at 6:21 pm
[...] Solamente tendremos que modificar una linea en el plugin, está bien explicado en esta url. Gracias a mis-algoritmos por el [...]
October 12th, 2007 at 3:36 pm
If your are using WP 2.3 you need to change the line 22 by this other
$sqlStr = “SELECT count(DISTINCT ID) FROM $fromwhere”;
October 27th, 2007 at 1:42 am
[...] WP Digg Style Paginator. This is the one responsible in paginating our blog. [...]
November 3rd, 2007 at 8:19 am
[...] read more | digg story [...]
November 7th, 2007 at 8:27 pm
Can you say how i can change quantity of posts on shows on one page... i need to display 2 posts per page..
November 7th, 2007 at 8:43 pm
http://yourblog.com/wp-admin/options-reading.php
November 7th, 2007 at 9:54 pm
Thank you for the answer. May be you know how i can make some categories to not shows ?
November 7th, 2007 at 10:03 pm
No, i don't know, sorry.
November 29th, 2007 at 5:00 am
[...] es el que use hasta hace poco, el WP Digg Style Pagination, si querés saber como instalarlo visita [...]
December 3rd, 2007 at 9:14 am
[...] WP-Digg Style Paginator [...]
December 21st, 2007 at 6:35 pm
Is it possible to extend the single Wordpress page with this plugin? For example i am having page height of around 3000 Pixels.. Can i split pages without changing URL ? Help me in this regard.....
December 31st, 2007 at 4:37 am
[...] Digg Style Navigation [...]
December 31st, 2007 at 4:38 am
[...] WP-Digg Style Paginator [...]
January 6th, 2008 at 4:16 am
I use WP 2.3 you say I need to change in line 22 but in which file??
February 24th, 2008 at 5:39 pm
[...] WP Digg Style Pagination es un plugin para WordPress que te da la posibilidad de paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]