<li id="post-<?php the_ID(); ?>" <?php post_class( 'stm_post_info' ); ?>>
<?php if( get_the_title() ): ?>
<h4 class="stripe_2"><a href="https://wordpress.stackexchange.com/questions/345743/<?php the_permalink() ?>" ><?php the_title(); ?></a></h4>
<?php endif; ?>
Please try this