Displays the navigation to next/previous set of posts, when applicable.
$argsarrayoptional
prev_text stringnext_text stringscreen_reader_text stringaria_label string'Posts'.class string'posts-navigation'.Default:array()
function the_posts_navigation( $args = array() ) {
echo get_the_posts_navigation( $args );
}
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_posts_navigation