答案 0 :(得分:0)
发布徽章答案。 用于获取分页的功能如下。设置的参数只有当前页码,前面是'PAGE'
$args = array(
'base' => '%_%',
'format' => '?paged=%#%',
'total' => 1,
'current' => 0,
'show_all' => false,
'end_size' => 1,
'mid_size' => 1,
'prev_next' => true,
'prev_text' => __('<'),
'next_text' => __('>'),
'type' => 'plain',
'add_args' => false,
'add_fragment' => '',
'before_page_number' => 'PAGE',
'after_page_number' => ''
);
echo paginate_links( $args );