the_post_navigation

Displays the navigation to next/previous post, when applicable.

Description

the_post_navigation( (array) $args = array() ); 

Parameters (1)

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

Usage

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

Defined (1)

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

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