You can use has_post_thumbnail()
as condition and change output accordingly.
Example from Codex:
if(has_post_thumbnail()) {
the_post_thumbnail();
} else {
echo '<img src="'.get_bloginfo("template_url").'/images/img-default.png" />';
}
You can use has_post_thumbnail()
as condition and change output accordingly.
Example from Codex:
if(has_post_thumbnail()) {
the_post_thumbnail();
} else {
echo '<img src="'.get_bloginfo("template_url").'/images/img-default.png" />';
}