Title: Paginate
Author: ivan82
Published: <strong>01.08.2013</strong>
Last modified: 01.08.2013

---

Поиск плагинов

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

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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

# Paginate

 Автор: [ivan82](https://profiles.wordpress.org/ivan82/)

[Скачать](https://downloads.wordpress.org/plugin/paginate.zip)

 * [Детали](https://ru.wordpress.org/plugins/paginate/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/paginate/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/paginate/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/paginate/#developers)

 [Поддержка](https://wordpress.org/support/plugin/paginate/)

## Описание

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

## Установка

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

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Paginate» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад
следующие участники:

Участники

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

[Перевести «Paginate» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/paginate)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/paginate/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/paginate/), или подпишитесь 
на [журнал разработки](https://plugins.trac.wordpress.org/log/paginate/) по [RSS](https://plugins.trac.wordpress.org/log/paginate/?limit=100&mode=stop_on_copy&format=rss).

## Мета

 *  Версия **1.0**
 *  Обновление: **13 лет назад**
 *  Активных установок: **30+**
 *  Версия WordPress ** 2.5.1 или выше **
 *  Совместим вплоть до: **3.5.2**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/paginate/)
 * Метки:
 * [list](https://ru.wordpress.org/plugins/tags/list/)[page](https://ru.wordpress.org/plugins/tags/page/)
   [pages](https://ru.wordpress.org/plugins/tags/pages/)[Paginate](https://ru.wordpress.org/plugins/tags/paginate/)
   [pagination](https://ru.wordpress.org/plugins/tags/pagination/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/paginate/advanced/)

## Оценки

Пока что нет ни одного отзыва.

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

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/paginate/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/paginate/)