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()
Source
File: wp-includes/link-template.php
function the_post_navigation( $args = array() ) { echo get_the_post_navigation( $args ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |