Title: Paginate
Author: ivan82
Published: <strong>2013-08-01</strong>
Last modified: 2013-08-01

---

Szukaj wtyczek

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

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

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

# Paginate

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

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

 * [Szczegóły](https://pl.wordpress.org/plugins/paginate/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/paginate/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/paginate/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/paginate/#developers)

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

## Opis

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

## Instalacja

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

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Paginate” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój
wtyczki.

Zaangażowani

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

[Przetłumacz wtyczkę “Paginate” na swój język.](https://translate.wordpress.org/projects/wp-plugins/paginate)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/paginate/), sprawdź 
[repozytorium SVN](https://plugins.svn.wordpress.org/paginate/) lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/paginate/)
przez [RSS](https://plugins.trac.wordpress.org/log/paginate/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Wersja **1.0**
 *  Ostatnia aktualizacja **13 lat temu**
 *  Włączone instalacje **20+**
 *  Wersja WordPressa ** 2.5.1 lub nowszej **
 *  Testowano do **3.5.2**
 *  Język
 * [English (US)](https://wordpress.org/plugins/paginate/)
 * Tagi
 * [list](https://pl.wordpress.org/plugins/tags/list/)[page](https://pl.wordpress.org/plugins/tags/page/)
   [pages](https://pl.wordpress.org/plugins/tags/pages/)[Paginate](https://pl.wordpress.org/plugins/tags/paginate/)
   [pagination](https://pl.wordpress.org/plugins/tags/pagination/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/paginate/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

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

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/paginate/reviews/)

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

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