<?php query_posts('cat=20&posts_per_page=4'); while(have_posts()): the_post(); ?> <li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title();?></a></li> <?php endwhile; wp_reset_query(); ?>
其中cat=20表明分類ID,posts_per_page=4表明顯示幾條記錄
php
有用就點個贊吧!
post