Forked from jasoncarrigan2/single-classifieds thumbnail
Last active
December 20, 2015 11:29
-
-
Save aristath/6123459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="span5 cf-image"> | |
<?php | |
if(has_post_thumbnail()){ | |
$imageurl = wp_get_attachment_image_src(get_the_post_thumbnail($post->ID, 'medium' )); | |
$thumbnail = '<img title="no image" alt="no image" class="cf-no-image wp-post-image" src="' . $imageurl . '">'; | |
} else { | |
$thumbnail = '<img width="300" height="300" title="no image" alt="no image" class="cf-no-image wp-post-image" src="' . $field_image . ' rel=lightbox[<?php echo $post->ID; ?>]">'; | |
} | |
?> | |
<?php echo $thumbnail; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment