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()


Top ↑

Source

File: wp-includes/link-template.php

function the_posts_pagination( $args = array() ) {
	echo get_the_posts_pagination( $args );
}


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More