What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-28 16:13:08
wordpress if thumbnail show else
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> Add solution