我试图将默认分页添加到Wordpress循环中,但不确定从何处开始,大多数指南都解释了如何创建自定义编号分页。我只需要默认的wp分页。(新帖子/旧帖子)。
有人能给我指出正确的方向吗?
<?php
$show_posts_number = 12;
$args=array(
\'meta_key\' => \'_mcf_homepage\',
\'meta_value\' => \'Yes\',
\'cat\' => 6821, // Make the free-bingo cat id
\'showposts\' => $show_posts_number
);
$top_query = new WP_Query($args);
while ($top_query->have_posts()) : $top_query->the_post();
if (get_post_meta($post->ID, "_mcf_operator-name", true) != \'\')
$op_name = "".get_the_title()."";
?>
<div id="" class="grid_s home_list">
<div class="list_image">
<img src="<?php bloginfo(\'stylesheet_directory\'); ?>/images/<?php echo($op_name); ?>.jpg" />
</div>
</div>
<?php endif; endwhile; wp_reset_query();?>
<div class="clear"> </div>