我必须手动挂载博客文章,但我不确定这是否是正确的工作方式,它只有 9 页,每个页面有 4 个帖子,但博客有 83 个帖子!
<?php
$paged = get_query_var('paged');
$args = array(
'numberposts' => 4,
'offset' => $paged*4,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => true
);
$posts_array = get_posts( $args );
?>
不管怎么说,还是要谢谢你。