the_posts_pagination

Displays a paginated navigation to next/previous set of posts, when applicable.

Description

the_posts_pagination( (array) $args = array() ); 

Parameters (1)

0. $args — Optional. (array) => array()
See get_the_posts_pagination() for available arguments. Default empty array.

Usage

  1. if ( !function_exists( 'the_posts_pagination' ) ) { 
  2. require_once ABSPATH . WPINC . '/link-template.php'; 
  3.  
  4. // Optional. See get_the_posts_pagination() for available arguments. 
  5. // Default empty array. 
  6. $args = array(); 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = the_posts_pagination($args); 
  10.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/link-template.php  
  1. function the_posts_pagination( $args = array() ) { 
  2. echo get_the_posts_pagination( $args );