分页代码在:
inc/components/archive下的helper.php里。
-----
当我们自定义分类列表时,要用到这个:
<div class="container">
<?php
$args = wp_parse_args(
$args,
[
'query' => $wp_query,
'prefix' => blocksy_manager()->screen->get_prefix(),
'has_pagination' => true,
'pagination_args' => []
]
);
if ($args['has_pagination']) {
$args['pagination_args']['query'] = $args['query'];
$args['pagination_args']['prefix'] = $args['prefix'];
echo blocksy_display_posts_pagination($args['pagination_args']);
}
?>
</div>
====
当然也可以用 wp-pagenavi插件