<?php if (has_post_thumbnail()) : ?>
<?php the_post_thumbnail(); ?>
<?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/代わりの画像までのパス" alt="">
<?php endif; ?>
獅子魂での設定↓
<div class="col-md-4 mb-3 text-center thumbContainer">
<!-- 入力がある場合に表示させる -->
<?php if (has_post_thumbnail()) : /* もしアイキャッチが登録されていたら */ ?>
<?php the_post_thumbnail(); ?>
<?php else: /* 登録されていなかったら */ ?>
<img src="<?php echo get_template_directory_uri(); ?>/noimg_big.jpg" class="img-fluid" alt="">
<?php endif; ?>
</div>