wordpress---wp_query的使用方法

 array(13,23,19,21),'post_type'=>'page','orderby'=>'post__in','showposts'=>'10','paged'=>get_query_var('paged'));
// $args = array( 'post__in' => array(50,52,54,56,58), ) ;  'orderby'=>'post__in'
//  'post_parent' => 1,                     //(int) - use page id. Return just the child Pages. (Only works with heirachical post types.)
//'post_parent__in' => array(1,2,3)    ?>

have_posts()):?>
have_posts()) : $the_query->the_post();?>
  • 你可能感兴趣的:(Wordpress,php)