Pagination

Pagination class

TailPress comes with a pagination class that you can use in your theme like so:

1TailPress\Pagination::render();

By default, it will paginate based on the global $wp_query. However, you can pass a custom instance of WP_Query as well.

Customize

If you'd like to customize the default pagination of TailPress, you can simply make changes to the class as it is located in your theme at src/Pagination.php.