<div id="pagination">
<div class="prev"><?php next_posts_link(\'←\') ?></div>
<div class="pages">
<?php
global $wp_query;
$big = 9999;
echo paginate_links(array(
\'base\' => str_replace($big, \'%#%\', get_pagenum_link($big)),
\'format\' => \'?paged=%#%\',
\'total\' => $wp_query->max_num_pages,
\'current\' => max(1, get_query_var(\'paged\')),
\'show_all\' => false,
\'end_size\' => 1,
\'mid_size\' => 5,
\'prev_next\' => false,
\'prev_text\' => \'Prev\',
\'next_text\' => \'Next\',
\'type\' => \'list\'
));
?>
</div>
<div class="next"><?php previous_posts_link(\'→\') ?></div>
</div>
您好,我有一个分页循环设置,正在选择显示数字和上一个/下一个链接。然而,我正在试图找出如何在最近的5篇文章[1,2,3,4,5]中结束#\'s,而不是将其延续到[1,2,3,4,5,6,7]。在我博客上最近发表的5篇文章中,我将如何结束它?
“我只是想编辑div class pages部分,使其仅以5结尾。”-如果这有意义的话。