WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by swinton v1.3

Proper Pagination

A flexible framework for creating semantic pagination controls for a listings page based on established usability patterns.

Proper Pagination

The facts

Active installs
100+
Price
Free
Last updated
4 Jan 2010
Added
Jul 2009
Requires WP
2.7
Tested up to
WP 2.9.2
Downloads
8,087

Our analysis

AI-assisted

Proper Pagination is a WordPress plugin designed for theme developers to facilitate the creation of pagination controls for various listings pages, including archives, authors, categories, searches, and tags. It provides a set of template tags that help manage pagination within the WordPress Loop, allowing developers to easily implement semantic and usable pagination.

The plugin includes functions to check for pagination, retrieve page links, and manage pagination contexts. It is intended for those who are familiar with WordPress theme development and need a straightforward way to add pagination to their listings.

Best for: Theme developers looking to implement pagination in WordPress listings.

What it does well

  • Provides template tags for pagination control
  • Aimed at theme developers
  • Supports various listings pages

Where it falls short

  • Last updated in January 2010
  • Compatibility limited to WordPress 2.9.2
  • No published rating available

Verdict

Proper Pagination offers basic functionality for developers needing pagination controls, but its outdated status may limit its effectiveness with modern WordPress versions.

From the developer

swinton's own description of Proper Pagination, lightly tidied.

This plugin is primarily aimed at theme developers, and intends to ease the
creation of semantic, usable pagination controls for WordPress listings pages, such as
arhive, author, category, search, tag listings etc.

Inspired by The Loop and WP_Query, this plugin stays out of the theme
developer’s way, allowing her to create the markup needed by providing the
following template tags:

  • pp_has_pagination – determines whether the current ‘view’ has any pagination to display, i.e. whether the content being browsed spans more than 1 page
  • pp_the_pagination – initiates the pagination context, should be called at the beginning of each loop iteration
  • pp_rewind_pagination – resets the pagination context, so that the pagination loop can be iterated over multiple times
  • pp_is_current_page – for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the current page
  • pp_has_previous_page – for use in the pagination loop, returns a boolean indicating whether there is a previous page, e.g. when at page 1, there is no previous page
  • pp_has_next_page – for use in the pagination loop, returns a boolean indicating whether there is a next page, e.g. when at page N of N, there is no next page
  • pp_the_page_permalink – for use in the pagination loop, echos the permalink for the current page
  • pp_the_previous_page_permalink – for use in the pagination loop, echos the permalink for the previous page
  • pp_the_next_page_permalink – for use in the pagination loop, echos the permalink for the next page
  • pp_the_first_page_permalink – for use in the pagination loop, echos the permalink for the first page
  • pp_the_last_page_permalink – for use in the pagination loop, echos the permalink for the last page
  • pp_the_page_num – for use in the pagination loop, echos the page number of the current page being iterated over

For example, the following arrangement of template tags would provide a rudimentary pagination control:

<?php if (pp_has_pagination()) : ?>
    <div class="pagination">

        <!-- the previous page -->
        <?php pp_the_pagination(); if (pp_has_previous_page()) : ?>
            <a href="<?php pp_the_previous_page_permalink(); ?>" class="prev">newer stories</a>
        <?php else : ?>
            <span class="current prev">newer stories</span>
        <?php endif; pp_rewind_pagination(); ?>

        <!-- the page links -->
        <?php while(pp_has_pagination()) : pp_the_pagination(); ?>
            <?php if (pp_is_current_page()) : ?>
                <span class="current"><?php pp_the_page_num(); ?></span>
            <?php else : ?>
                <a href="<?php pp_the_page_permalink(); ?>"><?php pp_the_page_num(); ?></a>
            <?php endif; ?>
        <?php endwhile; pp_rewind_pagination(); ?>

        <!-- the next page -->
        <?php pp_the_pagination(); if (pp_has_next_page()) : ?>
            <a href="<?php pp_the_next_page_permalink(); ?>" class="next">older stories</a>
        <?php else : ?>
            <span class="current next">older stories</span>
        <?php endif; pp_rewind_pagination(); ?>

    </div>
<?php endif; ?>

The template tags on offer by this plugin provide the theme developer with an
unlimited array of possibilities for marking up the pagination control in a
semantic manner.

For more information, see the original blog post.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for directory sites.

TablePress

Embed beautiful, accessible, and interactive tables into your WordPress website’s posts and pages, without hav...

Free 600k+ installs 5★ (4,625)
File Manager Pro

Best WordPress file manager without FTP access. Edit code with built-in editor, upload files, download plugins...

Free 100k+ installs 4.9★ (152)
User Profile Builder

Powerful user profile plugin to create front-end user registration forms, login &amp; user profile forms. Incl...

Free 40k+ installs 4.7★ (735)
Ultimate Member

Membership &amp; community plugin with user profiles, registration &amp; login, member directories, content re...

Free 200k+ installs 4.4★ (1,444)
Media Sync

Simple plugin to scan &quot;uploads&quot; directory and bring those files into Media Library.

Free 50k+ installs 4.7★ (86)
HireZoot

Create modern careers page, list jobs, and manage applications directly from your WordPress dashboard.

Free 30k+ installs 4.8★ (193)