Languages: English • 日本語 (Add your language)
The posts pagination function outputs a set of page numbers with links to the previous and next pages of posts. These functions are used for post listings (like index.php) or archives (like archives.php).
This function echoes the return of get_the_posts_pagination().
<?php the_posts_pagination( $args ); ?>
<?php the_posts_pagination( array( 'mid_size' => 2 ) ); ?>
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( 'Back', 'textdomain' ),
'next_text' => __( 'Onward', 'textdomain' ),
) ); ?>
wp-includes/link-template.php