$i = 0; while (have_posts()) { the_post(); theme_functions::archive_content(['lazyload' => $i <= 6 ? false : true]); ++$i; } ?> </div> <?php if ($GLOBALS['wp_query']->max_num_pages > 1) { ?> <?php echo theme_functions::pagination(); ?> <?php } ?> <?php } else { theme_functions::no_post(); } ?> </div> </div> <?php include __DIR__ . '/sidebar.php'; ?> </div><!-- .row --> </div><!-- .g --> <?php get_footer();