【Cyclist】トップページ用WP_Query
// WP_Query arguments $args = array( 'post_type' => array( 'post' ), 'post_status' => array( 'publish' ), ); // The Query $site_top_new_posts = new WP_Query( $args ); // The Loop if ( $site_top_new_posts->have_posts() ) { while ( $site_top_new_posts->have_posts() ) { $site_top_new_posts->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();