wp query posts per page -1 code example Example: wp_query post per page $query = new WP_Query( array( 'posts_per_page' => 3 ) );