客户端的wordpress是相当自定义的,并且已经有很多东西被毁坏了,只有真正可以使用的功能。知道如何定制这个:
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
只显示某个类别?
答案 0 :(得分:0)
<?php
$catquery = new WP_Query( 'cat=1&posts_per_page=10' );
while($catquery->have_posts()) : $catquery->the_post();
?>
<ul>
<li><h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3></li>
</ul>
<?php endwhile; ?>
&#13;