Re-add thumb
This commit is contained in:
parent
9df10d5e55
commit
013705800a
1 changed files with 1 additions and 0 deletions
|
|
@ -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">');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue