global $query_string; // 全投稿出力 $posts = query_posts($query_string.'&posts_per_page=-1'); if (have_posts()) : while (have_posts()) : the_post(); // ループ処理 endwhile; else; // not found endif; // ループをリセット wp_reset_query(); $args = array( 'post_type'=>'page', 'post__in' => array('595', '33', 44) ); $query = new WP_Query($args); while($query->have_posts()) : $query->the_post(); // ループ処理 endwhile; // 投稿を
![WordPress, ループをカスタマイズする3つの方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)