ページ送り

endwhile;

the_posts_pagination( array(
‘mid_size’ => 2,
‘prev_text’ => __( ‘Back’, ‘textdomain’ ),
‘next_text’ => __( ‘Onward’, ‘textdomain’ ),
) );

$paged = get_query_var(‘paged’) ?: 1;
$loop = new WP_Query(
array(
‘posts_per_page’ => ‘3’,
‘paged’ => $paged,