Replace with below code :
<?php
$args = .....;
$query = new WP_Query($args);
while($query->have_posts() ) :
$query->the_post();
?>
<div class="each">
<h4><a href="https://wordpress.stackexchange.com/questions/289892/<?php the_permalink();?>" title="<?php the_title_attribute();?>"><?php the_title();?></a></h4>
</div>
<?php endwhile; wp_reset_query(); ?>