Re-add thumb

This commit is contained in:
Markus Ankenbrand 2016-09-10 21:22:25 +02:00
parent 9df10d5e55
commit 013705800a

View file

@ -95,6 +95,7 @@
));
foreach($tagebuch as $tb){
if(get_field('urlaub',$tb->ID)->ID === get_the_ID()){
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($tb->ID), 'post-thumb' );
echo('<a href="'.get_the_permalink($tb->ID).'" id="post-'.$tb->ID.'" ');
post_class('post');
echo(' style="background-image: url('.$thumb['0'].');"><div class="post-overlay">');