Fallback for default thumbnail
-
Hi guys,
I’m using a fallback when user didn’t use WordPress thumbnail to load custom default thumbnail:
<?php if ( has_post_thumbnail() ) the_post_thumbnail('thumbnail'); else echo '<img src="' . trailingslashit( get_template_directory_uri() ) . 'images/defaul.png' . '" alt="" height="320" />'; ?>However, I would like to implement this also in RPWE widget. Any idea how can I do this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Fallback for default thumbnail’ is closed to new replies.