the_posts_pagination() WordPress Function
The the_posts_pagination() function is used to display a set of pagination links for the posts on a WordPress site. This function will generate a set of links for the next and previous pages of posts, as well as links to the first and last pages of posts. The the_posts_pagination() function can be used in conjunction with the WP_Query class to create a custom paginated posts loop.
the_posts_pagination( array $args = array() ) #
Displays a paginated navigation to next/previous set of posts, when applicable.
Parameters
- $args
(array)(Optional) See get_the_posts_pagination() for available arguments.
Default value: array()
Source
File: wp-includes/link-template.php
function the_posts_pagination( $args = array() ) { echo get_the_posts_pagination( $args ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |