wordpress调用最新文章

wordpress调用最新文章的代码 <?php query_posts('showposts=6&cat=-1'); ?> // 显示篇数和排除分类 <ul> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endwhile;?> </ul>