‘publish’,
‘paged’ => $paged,
‘posts_per_page’ => 5, // 表示件数
‘orderby’ => ‘date’,
‘order’ => ‘DESC’
) );
if ($the_query->have_posts()) :?>have_posts()) : $the_query->the_post();?>
//コンテンツ
max_num_pages > 1) {
echo paginate_links(array(
‘base’ => get_pagenum_link(1) . ‘%_%’,
‘format’ => ‘page/%#%/’,
‘current’ => max(1, $paged),
‘mid_size’ => 1,
‘total’ => $the_query->max_num_pages
));
}
wp_reset_postdata();?>
echo paginate_links(array(
‘base’ => get_pagenum_link(1) . ‘%_%’,
‘format’ => ‘page/%#%/’,
‘current’ => max(1, $paged),
‘mid_size’ => 1,
‘total’ => $the_query->max_num_pages
));
}
wp_reset_postdata();?>