wordpress如何调用指定分类目录文章
WordPress调用指定分类的文章代码如下:
1 2 3 4 5 | <ul> <?php query_posts('cat=15&posts_per_page=10'); while(have_posts()): the_post(); ?> <li><a href="<?php the_permalink();?>" title="<?php the_title(); ?>"><?php the_title();?></a></li> <?php endwhile; wp_reset_query(); ?> </ul> |