如果适用,显示下一个/上一个帖子的导航。
原型
the_post_navigation( array $args = array() )
参数
$args
(array)
(Optional)
有关可用参数,请参阅get_the_post_navigation()。
源文件
路径:wp-includes/link-template.php
<?php
...
function the_post_navigation( $args = array() ) {
echo get_the_post_navigation( $args );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/the_post_navigation/