Hi, this is my code inside the default.php template file:
<?php $_posts = new WP_Query($args);?>
<main class=”fullwidth-blog”>
<div class=”bloglist”>
<?php while($_posts->have_posts()): $_posts->the_post();?>
<div class=”blog_list_outter”>
<div class=”post-grid”>
<h2 class=”blog_heading”>
<a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a>
</h2>
</div>
<div class=”blog_author”>
<div class=”author_image”><?php echo get_avatar( get_the_author_meta(‘ID’), 60); ?></div>
<div class=”author-profile-post”><?php the_author_posts_link();?></div>
</div>
<div class=”category_title”>
<div class=”category__list__card”>
<p class=”cat”>
<?php the_category(‘, ‘); ?>
</p>
</div>
<div class=”post__stamp”>
<?php the_time(‘F j, Y’); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</main>