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
if ( !function_exists( 'the_post_navigation' ) ) { require_once ABSPATH . WPINC . '/link-template.php'; } // Optional. See get_the_post_navigation() for available arguments. // Default empty array. $args = array(); // NOTICE! Understand what this does before running. $result = the_post_navigation($args);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/link-template.php
- function the_post_navigation( $args = array() ) {
- echo get_the_post_navigation( $args );
- }