Promote your Service and Product online Contact us

+91 87 44 999667; +91 99 11 883996 info@3pixls.com, sales@3pixls.com

Set Default Thumbnail, Featured Image WordPress


[php]
<?php the_permalink() ?>"><?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>
<img src="<?php bloginfo(‘template_directory’); ?>/images/youtubethumb.png"
alt="<?php the_title(); ?>" />
<?php } ?>
[/php]