Mar
12

WP Digg Style Pagination Plugin V0.2 Beta

I think that this entry is obsolete. If you are looking for a pagination control for Wordpress, you can read this article which is eaiser to implement.

[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:

  1. Download the plugin, upload the pagination.php plugin to the folder wp-content/plugins on our Wordpress installation.
  2. Activate the plugin in the Plugins section of the admin control panel.
  3. Open the folder wp-content/themes//footer.php or header.php
  4. 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"));
    ?>
    
  5. 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 other
php:
$sqlStr = “SELECT count(DISTINCT ID) FROM $fromwhere”;

Plugin 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 Comment

Comments RSS Feed   TrackBack URL

Leave a comment

top