这个方法可以吗?
新建页面,在里面输入
<?php $posts = get_posts( "category=4&numberposts=10" ); ?>
<?php if( $posts ) : ?>
<ul><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
category=4&numberposts=10
4是ID,去后台找想要显示的分类的ID。10是显示的文章数, &numberposts=10去掉这一句就没有限制了