Post Image – Default for None
-
I am using this code:
<?php if ( has_post_thumbnail() ) { echo the_post_thumbnail(); } else { echo ""; } ?>
to get the post thumbnails from the blog. It’s setting up fine, but how do I make it display another image if there is none. You can see it is the PHP if and else statements, but I don’t know how to make to do an image.
All help is appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Post Image – Default for None’ is closed to new replies.