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

---

Procurar plugins

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

Este plugin **não foi testado com as 3 últimas grandes versões do WordPress**. Pode
já não ser suportado e pode ter problemas de compatibilidade quando usado com versões
mais recentes do WordPress.

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

# Paginate

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

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

 * [Detalhes](https://pt.wordpress.org/plugins/paginate/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/paginate/#reviews)
 *  [Instalação](https://pt.wordpress.org/plugins/paginate/#installation)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/paginate/#developers)

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

## Descrição

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

## Instalação

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

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

“Paginate” é software de código aberto. As seguintes pessoas contribuíram para este
plugin:

Contribuidores

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

[Traduza o “Paginate” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/paginate)

### Interessado no desenvolvimento?

[Consulte o código](https://plugins.trac.wordpress.org/browser/paginate/), consulte
o [repositório SVN](https://plugins.svn.wordpress.org/paginate/), ou subscreva o
[registo de alterações](https://plugins.trac.wordpress.org/log/paginate/) por [RSS](https://plugins.trac.wordpress.org/log/paginate/?limit=100&mode=stop_on_copy&format=rss).

## Metadados

 *  Versão **1.0**
 *  Última actualização **Há 13 anos**
 *  Instalações activas **20+**
 *  Versão do WordPress ** 2.5.1 ou superior **
 *  Testado até **3.5.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/paginate/)
 * Etiquetas
 * [list](https://pt.wordpress.org/plugins/tags/list/)[page](https://pt.wordpress.org/plugins/tags/page/)
   [pages](https://pt.wordpress.org/plugins/tags/pages/)[Paginate](https://pt.wordpress.org/plugins/tags/paginate/)
   [pagination](https://pt.wordpress.org/plugins/tags/pagination/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/paginate/advanced/)

## Classificações

Ainda não foram submetidas avaliações.

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

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

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/paginate/)