您可以使用wp\\u link\\u pages函数的format参数,如下所示:
<?php $args = array(
\'base\' => \'%_%\',
\'format\' => \'?page=%#%\',
\'total\' => 1,
\'current\' => 0,
\'show_all\' => False,
\'end_size\' => 1,
\'mid_size\' => 2,
\'prev_next\' => True,
\'prev_text\' => __(\'« Previous\'),
\'next_text\' => __(\'Next »\'),
\'type\' => \'plain\',
\'add_args\' => False,
\'add_fragment\' => \'\',
\'before_page_number\' => \'\',
\'after_page_number\' => \'\'
); ?>
这对我有好处
查看更多信息https://codex.wordpress.org/Function_Reference/paginate_links