Commit 56e310e7 authored by Stefan Bruckner's avatar Stefan Bruckner
Browse files
parents e2c319ac bc977a84
......@@ -96,11 +96,11 @@ function present_post($post, $skipongoing)
<?php if (has_post_thumbnail()) :
echo get_the_post_thumbnail($post->ID,'thumbnail');
elseif ($head and has_post_thumbnail($head->ID)):
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'team-thumb');
$src = wp_get_attachment_image_src(get_post_thumbnail_id($head->ID), 'team-thumb');
$thumb_src = $src[0]; ?>
<img src="<?php echo $thumb_src ?>" alt="IMG"/>
<?php
echo get_the_post_thumbnail($head->ID,'thumbnail');
//echo get_the_post_thumbnail($head->ID,'thumbnail');
else: ?>
<img src= "<?php bloginfo('template_directory'); ?>/images/noimage.png"/>
<?php endif; ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment