基础是问题:
\'base\' => add_query_arg(\'listpostspage\',\'%#%\'),
以下是完整代码:
$pagination_args = array(
\'base\' => add_query_arg(\'listpostspage\',\'%#%\'),
\'format\' => \'?listpostspage=%#%\',
\'total\' => $the_query->max_num_pages,
\'current\' => $paged,
\'show_all\' => false,
\'end_size\' => 1,
\'mid_size\' => 2,
\'prev_next\' => true,
\'prev_text\' => __( \'Zurück\', \'Theme\' ),
\'next_text\' => __( \'Weiter\', \'Theme\' ),
\'type\' => \'plain\',
\'add_args\' => false,
\'add_fragment\' => \'\'
);
感谢前往
raison 在stackoverflow谁发布了这个
answer.