Title: Paginate
Author: ivan82
Published: <strong>1 août 2013</strong>
Last modified: 1 août 2013

---

Recherche d’extensions

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

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

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

# Paginate

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

[Télécharger](https://downloads.wordpress.org/plugin/paginate.zip)

 * [Détails](https://fr.wordpress.org/plugins/paginate/#description)
 * [Avis](https://fr.wordpress.org/plugins/paginate/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/paginate/#installation)
 * [Développement](https://fr.wordpress.org/plugins/paginate/#developers)

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

## Description

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

## Installation

_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();
    ?>
    ```

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« Paginate » est un logiciel libre. Les personnes suivantes ont contribué à cette
extension.

Contributeurs

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

[Traduisez « Paginate » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/paginate)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/paginate/), consulter
le [SVN dépôt](https://plugins.svn.wordpress.org/paginate/), ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/paginate/)
par [RSS](https://plugins.trac.wordpress.org/log/paginate/?limit=100&mode=stop_on_copy&format=rss).

## Méta

 *  Version **1.0**
 *  Dernière mise à jour **il y a 13 ans**
 *  Installations actives **20+**
 *  Version de WordPress ** 2.5.1 ou plus **
 *  Testé jusqu’à **3.5.2**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/paginate/)
 * Étiquettes
 * [list](https://fr.wordpress.org/plugins/tags/list/)[page](https://fr.wordpress.org/plugins/tags/page/)
   [pages](https://fr.wordpress.org/plugins/tags/pages/)[Paginate](https://fr.wordpress.org/plugins/tags/paginate/)
   [pagination](https://fr.wordpress.org/plugins/tags/pagination/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/paginate/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

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

[Voir tous les avis](https://wordpress.org/support/plugin/paginate/reviews/)

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/paginate/)