Title: Paginate
Author: ivan82
Published: <strong>1 Agost 2013</strong>
Last modified: 1 Agost 2013

---

Search plugins

![](https://ps.w.org/paginate/assets/banner-772x250.png?rev=749151)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/paginate_b8b8b8.svg)

# Paginate

 Per [ivan82](https://profiles.wordpress.org/ivan82/)

[Download](https://downloads.wordpress.org/plugin/paginate.zip)

 * [Details](https://oci.wordpress.org/plugins/paginate/#description)
 * [Reviews](https://oci.wordpress.org/plugins/paginate/#reviews)
 *  [Installation](https://oci.wordpress.org/plugins/paginate/#installation)
 * [Development](https://oci.wordpress.org/plugins/paginate/#developers)

 [Support](https://wordpress.org/support/plugin/paginate/)

## Descripcion

Display your list with pagination by a simple function call.
 Add multiple paginations
to the same page.

**Features**

 * Multiple paginations at the same page
 * Chose how many items to display per page, default: 10
 * Chose adjacent items, default: 6
 * Customize on page query variable, default: « page »
 * Choose if the on page value should be fetched automatically, default: true
 * How to display first and last page buttons, as numbers or as text, default: numbers
 * All the buttons are visible by default
 * If the previous button is visible
 * If the next button is visible
 * If the previous button is visible when the first page is reached
 * If the next button is visible when the last page is reached
 * If the adjacent dots are visible
 * If the first button is visible
 * If the last button is visible
 * Localization support – download the template and submit your language
 * All HTML/CSS elements are customizable

**Changelog**

 * 1.0: Plug in release

## Installacion

_Install and Activate_

 1. Download and unzip `paginate.zip`.
 2. Upload the `paginate` directory to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the `Plugins` menu in WordPress.
 4. In your theme, modify the CSS file to change the look and feel of your pagination.

_Implement_

3 line implementation

    ```
    <?php
    $totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
    $p = new paginate($totalitems);
    echo $p->get_pagination();
    ?>
    ```

Post onpage argument

    ```
    <?php
    $onPage = $_GET['page']
    $totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
    $p = new paginate($totalitems);
    echo $p->get_pagination($onPage);
    ?>
    ```

Example implementation

    ```
    <?php
    //get total items from database
    $totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");

    $p = new paginate($totalitems);
    $limit = $p->itemsPerPage;
    $offset = $p->get_offset();

    //your query. add the offset and limit to the query
    $query = "SELECT $wpdb->users.ID FROM $wpdb->users LIMIT $offset, $limit";
    $user_ids = $wpdb->get_results($query);
    //your loop
    foreach($user_ids as $id) {
      //do something...
    }

    //pagination html
    echo $p->get_pagination();
    ?>
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Paginate” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ ivan82 ](https://profiles.wordpress.org/ivan82/)

[Translate “Paginate” into your language.](https://translate.wordpress.org/projects/wp-plugins/paginate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/paginate/), check out
the [SVN repository](https://plugins.svn.wordpress.org/paginate/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/paginate/) by [RSS](https://plugins.trac.wordpress.org/log/paginate/?limit=100&mode=stop_on_copy&format=rss).

## Mèta

 *  Version **1.0**
 *  Last updated **13 annadas ago**
 *  Active installations **30+**
 *  WordPress version ** 2.5.1 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/paginate/)
 * Tags
 * [list](https://oci.wordpress.org/plugins/tags/list/)[page](https://oci.wordpress.org/plugins/tags/page/)
   [pages](https://oci.wordpress.org/plugins/tags/pages/)[Paginate](https://oci.wordpress.org/plugins/tags/paginate/)
   [pagination](https://oci.wordpress.org/plugins/tags/pagination/)
 *  [Advanced View](https://oci.wordpress.org/plugins/paginate/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/paginate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/paginate/reviews/)

## Contributors

 *   [ ivan82 ](https://profiles.wordpress.org/ivan82/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/paginate/)