Set the posts_per_page parameter in args to -1, this will return all posts from the wp_posts table. eg
$args = array( 'posts_per_page' => -1, 'post_type' => 'post', ); $the_query = new WP_Query( $args );
Now you can scroll and receive messages
while ( $the_query->have_posts() ) {
source share