If there is no a thumbnail, get the default image

PHP
<?php echo (has_post_thumbnail())?get_the_post_thumbnail_url():get_template_directory_uri().'/assets/img/default_image.png'; ?>

Tags: