I am trying to make a Wordpress theme which has a different number of posts in each section. Suppose the first section includes only one posts and as we scroll to the next section we more than one maybe 6 posts. The problem is I am not sure how to do that in WordPress. For the first post, I queried this way but it renders only one posts in each section.
I want to achieve this have a look on this website example
<?php
if(have_posts()): ?>
<div class="row">
<?php while(have_posts()): the_post(); ?>
<?php get_template_part('template-parts/content', get_post_format());?>
<?php endwhile;wp_reset_postdata(); ?>
</div>
<?php else: ?>
<?php get_template_part('/template-parts/content', 'none');?>
<?php endif
?>
Please help me to figure out this.