<ul class="loop-a016-ul">
<?php
$args = array(
'post_type' => 'post',
'order' => 'DESC',
'cat' => 36,
'posts_per_page'=> 18,
'paged' => get_query_var('paged')
);
_loop($args,'a016');
?>
</ul>
<div class="news-page">
<?php the_posts_pagination(array(
'mid_size' => 2,
'prev_text' => '<',
'next_text' => '>',
'screen_reader_text' => ' '
)); ?>
</div>
</div>
wordpress 分页调用 the_posts_pagination 函数使用
最新推荐文章于 2024-08-09 10:42:44 发布