the_post_navigation() WordPress Function

The the_post_navigation() function is used to display navigation links for next and previous posts. This function must be used within The Loop.

the_post_navigation( array $args = array() ) #

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


Parameters

$args

(array)(Optional) See get_the_post_navigation() for available arguments.

Default value: array()


Top ↑

Source

File: wp-includes/link-template.php

function the_post_navigation( $args = array() ) {
	echo get_the_post_navigation( $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