有关详细信息,请参阅Codex页面paginate_links
对于所有接受的参数。
要修改的两个是mid_size
还有可能end_size
.
$output .= paginate_links( array(
\'base\' => str_replace( $big, \'%#%\', esc_url( get_pagenum_link( $big ) ) ),
\'format\' => \'?paged=%#%\',
\'current\' => max( 1, get_query_var(\'paged\') ),
\'total\' => $wp_query->max_num_pages,
\'mid_size\' => 8 // number of page links to display on either side of current page
) );