<?php
$query_post = array(
'posts_per_page' => 10,
'cat' => array(6),//指定分类id
'post__in' => get_option('sticky_posts'),
'caller_get_posts' => 1
);
query_posts($query_post);
?>
<?php while (have_posts()) : the_post();?>
//
<?php endwhile;?>
<?php wp_reset_query();?>
相关文章