方法一:
<ul><?php$args=array(cat=>1,//分类IDposts_per_page=>10,//显示篇数);query_posts($args);if(have_posts()):while(have_posts()):the_post();?><li><ahref="<?phpthe_permalink();?>"><?phpthe_title();?></a>//标题<span><?phpif(has_excerpt()){echo$description=get_the_excerpt();//文章编辑中的摘要}else{echomb_strimwidth(strip_tags(apply_filters( he_content,$post->post_content)),0,170,"……");//文章编辑中若无摘要,自定截取文章内容字数做为摘要}?></span></li><?phpendwhile;endif;wp_reset_query();?></ul>