$cat_id,//(int) - use category id. 'posts_per_page' => $count, // how many will be display ); $the_query = new WP_Query( $args ); // The Loop if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>