一个新的wp\\u查询问题:我设置了一个wp\\u查询,如下所示,但不是17篇文章,我只从ID=5的所选类别中获得前10篇文章。结果上是否有隐式分页指令?
$myPosts = new WP_Query();
$args_posts = array(\'cat\' => 5);
$myPosts->query($args_posts);
while ($myPosts->have_posts()) : $myPosts->the_post();
?>
<div class="post">
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="cover"><a href="<?php the_permalink(); ?>" rel="bookmark,nofollow" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo(\'template_directory\'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&h=80&w=120&zc=1" width="120" height="80" alt="<?php the_title(); ?>" /></a></div>
<?php } ?>
<p><?php the_excerpt(240, __(\'read more »\')); ?></p>
</div>
<?php endwhile;
}
}
?>