Default Thumb Problem
-
Im trying to use a default thumb if no post image exists but something is wrong and I keep getting a blank default. Help please.
<?php $thumb = catch_that_image(); ?> <?php if ( $thumb ) { ?> <img src="<?php echo $thumb; ?>" width="50" height="50" /> <?php } else { ?> <img src="https://mysite.com/wp-content/themes/fod/images/image.png" width="50" height="50" /> <?php } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Default Thumb Problem’ is closed to new replies.