you need to add wp_Query on the main page the blog page is considered, so it has a default query.
$args = array ( 'post_type' => 'post', 'pagination' => false, 'posts_per_page' => '-1', 'ignore_sticky_posts' => false, 'order' => 'DESC', 'orderby' => 'date', );
you must add this code before
if (have_posts()): while (have_posts()): the_post();?>
this part near have_posts() will be
// The Loop if ( $query->have_posts() ) { ?> <?php while ( $query->have_posts() ) { $query->the_post();
Remember to add wp_reset_postdata(); at the end so you can use many requests on one page.
source share