WordPress获取指定分类下的所有文章

<?php
// 获取指定分类下的所有文章
    $args = array(
        'showposts' =>   7,    // 显示10条
        'cat'       =>   19,
        'order'     =>   'asc'
    );
    query_posts($args);
    while (have_posts()): the_post(); 
        ?>
        <li>
            <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_title(); ?></a>
        </li>
    <?php endwhile; wp_reset_query();
?>