PHPackages                             2createstudio/carbon-pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. 2createstudio/carbon-pagination

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

2createstudio/carbon-pagination
===============================

A handy WordPress library for building all kinds of paginations.

v1.1.3(10y ago)152.4k↓50%4[1 PRs](https://github.com/2createStudio/carbon-pagination/pulls)GPL-2.0+PHP

Since Oct 10Pushed 9y ago6 watchersCompare

[ Source](https://github.com/2createStudio/carbon-pagination)[ Packagist](https://packagist.org/packages/2createstudio/carbon-pagination)[ Docs](https://github.com/2createStudio/carbon-pagination)[ RSS](/packages/2createstudio-carbon-pagination/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Carbon Pagination [![Build Status](https://camo.githubusercontent.com/ab3c7631dc5f8cd45f09258064ba7849cf026ea2cb7c9fbab36c30b8d4a1a7d2/68747470733a2f2f7472617669732d63692e6f72672f3263726561746553747564696f2f636172626f6e2d706167696e6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/2createStudio/carbon-pagination) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/58e7ead034bb7a9073f404e08737cd0ff3d1b53bf91fa19181e82ca32f0771d1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f3263726561746553747564696f2f636172626f6e2d706167696e6174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/2createStudio/carbon-pagination/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/23cb976c9bc7661910673543cffbe8a8591509f85e0e7b0dbe654bd56243fbb5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f3263726561746553747564696f2f636172626f6e2d706167696e6174696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/2createStudio/carbon-pagination/?branch=master)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#carbon-pagination---)

### About

[](#about)

[Carbon Pagination](https://github.com/2createStudio/carbon-pagination) - a handy WordPress library for building all kinds of paginations.

Provides the theme and plugin developers an easy way to build and implement highly customizable paginations, specifically tailored to their needs.

Can be used as a WordPress plugin as well.

---

Usage &amp; Examples
--------------------

[](#usage--examples)

#### Basic Usage

[](#basic-usage)

The following example is the most basic way to display a posts pagination (see **Pagination Types** for all types of pagination), using the default options:

```

```

If using Carbon Pagination as a plugin, it would be best to check if the function exists:

```

```

The `carbon_pagination()` function is a wrapper around the `Carbon_Pagination_Presenter` class, which handles pagination presentation. Which means you can also do the above this way:

```

```

Of course, if using Carbon Pagination as a plugin, it would be best to check if the class exists:

```

```

#### Specifying parameters

[](#specifying-parameters)

You can specify your preferred parameters as the second argument of `carbon_pagination()` and `Carbon_Pagination_Presenter::display()`. Example:

```
