WPDev.one
Core Function
View Source on Trac ↗

get_the_post_navigation()

get_the_post_navigation( mixed $args = array() )

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

Parameters 1 required

Name / Type Description
array

$args { Optional. Default post navigation arguments. Default empty array.

Required

Return Value

(string)
Markup for post links.

Function Information

Since Version
4.1.0
Source File
wp-includes/link-template.php
Advertisement